Borderou de evaluare (job #1245036)
Utilizator | Data | 18 octombrie 2014 15:51:51 | |
---|---|---|---|
Problema | Flori | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘short int read()’:
user.cpp:10:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[30]’ [-Wformat=]
scanf("%s",&c);
^
user.cpp: In function ‘int main()’:
user.cpp:20:9: error: redeclaration of ‘int n’
int n=read(),m=read();
^
user.cpp:17:9: error: ‘int n’ previously declared here
int n,m;
^
user.cpp:20:18: error: redeclaration of ‘int m’
int n=read(),m=read();
^
user.cpp:17:11: error: ‘int m’ previously declared here
int n,m;
^
user.cpp:18:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flori.in","r",stdin);
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("flori.out","w",stdout);
^
user.cpp: In function ‘short int read()’:
user.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !