Borderou de evaluare (job #1529620)
Utilizator | Data | 21 noiembrie 2015 09:12:48 | |
---|---|---|---|
Problema | Cool | 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:51:9: error: ‘sum’ was not declared in this scope
sum += v[i];
^
user.cpp:60:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (ma - mi == j - i)
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cool.in", "r", stdin);
^
user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cool.out", "w", stdout);
^
user.cpp:14:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d %d %d", &var, &n, &k, &v[1]);
^
user.cpp:17:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !