Borderou de evaluare (job #1707712)

Utilizator tudorcomanTudor Coman tudorcoman Data 25 mai 2016 19:07:23
Problema Split Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:4:10: error: ‘maxN’ was not declared in this scope int c[4][maxN + 2]; ^ user.cpp:5:12: error: ‘maxN’ was not declared in this scope int sol[4][maxN + 2]; ^ user.cpp:6:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] main() { ^ user.cpp: In function ‘int main()’: user.cpp:15:5: error: ‘c’ was not declared in this scope c[0][i] = Max - Min; ^ user.cpp:23:17: error: ‘c’ was not declared in this scope int x = c[k - 1][j] + Max - Min; ^ user.cpp:25:11: error: ‘sol’ was not declared in this scope sol[k][i] = j; ^ user.cpp:33:14: error: ‘sol’ was not declared in this scope int sol3 = sol[3][N], sol2 = sol[2][sol3], sol1 = sol[1][sol2]; ^ user.cpp:34:28: error: ‘c’ was not declared in this scope printf("%d\n%d %d %d\n", c[3][N], sol1, sol2, sol3); ^ user.cpp:34:37: error: ‘sol1’ was not declared in this scope printf("%d\n%d %d %d\n", c[3][N], sol1, sol2, sol3); ^ user.cpp:34:43: error: ‘sol2’ was not declared in this scope printf("%d\n%d %d %d\n", c[3][N], sol1, sol2, sol3); ^ user.cpp:7:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("split.in", "r", stdin); ^ user.cpp:8:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("split.out", "w", stdout); ^ user.cpp:10:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &v[i]); ^

Ceva nu functioneaza?