Borderou de evaluare (job #1977231)
Utilizator | Data | 5 mai 2017 09:19:32 | |
---|---|---|---|
Problema | Puzzle3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void cit(int)’:
user.cpp:12:27: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[100010]’ [-Wformat=]
scanf ("%s", &tab[trm]);
^
user.cpp: In function ‘int main()’:
user.cpp:93:13: error: ‘cc’ was not declared in this scope
cc=(a-'0')+(b-'0');
^
user.cpp: In function ‘void cit(int)’:
user.cpp:12:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%s", &tab[trm]);
^
user.cpp: In function ‘int main()’:
user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("puzzle3.in","r",stdin);
^
user.cpp:51:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("puzzle3.out","w",stdout);
^
user.cpp:53:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",&ts);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !