Borderou de evaluare (job #1297696)
Utilizator | Data | 22 decembrie 2014 11:36:20 | |
---|---|---|---|
Problema | Kbiti | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:21:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[50]’ [-Wformat=]
fscanf(fin,"%s",&s);
^
user.cpp:22:31: error: ‘strlen’ was not declared in this scope
for(int j=strlen(s)-1;j>=0;j--)
^
user.cpp:15:10: warning: unused variable ‘ch’ [-Wunused-variable]
char ch;
^
user.cpp:16:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%ld\n",&t);
^
user.cpp:21:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%s",&s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !