Borderou de evaluare (job #1883679)
Utilizator | Data | 18 februarie 2017 10:05:06 | |
---|---|---|---|
Problema | Maxpal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void maxim(int, int)’:
user.cpp:13:20: error: return-statement with a value, in function returning 'void' [-fpermissive]
if(x>y) return x;
^
user.cpp:14:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return y;
^
user.cpp: In function ‘int main()’:
user.cpp:54:17: error: void value not ignored as it ought to be
Max = maxim(mx[i-1][(j)-(i-1)], mx[i][(j+1)-(i)]);
^
user.cpp:55:17: error: void value not ignored as it ought to be
Max = maxim(Max, best);
^
user.cpp:19:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxpal.in", "r", stdin);
^
user.cpp:20:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxpal.out", "w", stdout);
^
user.cpp:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:25:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
if(i) scanf("%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !