Borderou de evaluare (job #1567419)
Utilizator | Data | 13 ianuarie 2016 11:04:08 | |
---|---|---|---|
Problema | Cel mai lung subsir comun | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void read()’:
user.cpp:14:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘unsigned char*’ [-Wformat=]
scanf("%d", &x);
^
user.cpp:18:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘unsigned char*’ [-Wformat=]
scanf("%d", &x);
^
user.cpp: At global scope:
user.cpp:23:17: error: ISO C++ forbids declaration of ‘afisareSirComun’ with no type [-fpermissive]
afisareSirComun()
^
user.cpp: In function ‘int afisareSirComun()’:
user.cpp:44:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘void read()’:
user.cpp:12:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
user.cpp:14:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:18:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp: In function ‘int main()’:
user.cpp:59:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmlsc.in","rt",stdin);
^
user.cpp:60:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmlsc.out","wt",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !