Borderou de evaluare (job #2019653)
Utilizator | Data | 8 septembrie 2017 11:28:15 | |
---|---|---|---|
Problema | Muzeu | 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:30:22: warning: comparison with string literal results in unspecified behaviour [-Waddress]
if(help=="."){
^
user.cpp:30:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:33:27: warning: comparison with string literal results in unspecified behaviour [-Waddress]
else if(help=="#"){
^
user.cpp:33:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp:24:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d\n", &n);
^
user.cpp:29:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%c", &help);
^
user.cpp:43:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "\n");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !