Borderou de evaluare (job #2553701)
Utilizator | Data | 22 februarie 2020 11:14:08 | |
---|---|---|---|
Problema | Caps | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:29:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(nrcaps%2==1)
^
main.cpp:40:13: error: expected '}' at end of input
return 0;
^
main.cpp:6:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("caps.in", "r", stdin);
^
main.cpp:7:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("caps.out", "w", stdout);
^
main.cpp:10:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &k, &q);
^
main.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", (s+1));
^
main.cpp:13:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !