Borderou de evaluare (job #2405438)
Utilizator | Data | 14 aprilie 2019 15:11:48 | |
---|---|---|---|
Problema | Calc | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void read()':
main.cpp:37:21: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
scanf("%c",x);
^
main.cpp:40:25: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=]
scanf("%c",x);
^
main.cpp: In function 'int main()':
main.cpp:65:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(q-1);
^~
main.cpp:66:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
cer2();
^~~~
main.cpp:67:5: error: 'else' without a previous 'if'
else
^~~~
main.cpp: In function 'void cit(int&)':
main.cpp:10:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&q,&n);
^
main.cpp: In function 'void read()':
main.cpp:37:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",x);
^
main.cpp:40:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",x);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !