Borderou de evaluare (job #931837)

Utilizator TudorMTudor Moldovanu TudorM Data 28 martie 2013 15:17:14
Problema Plaja Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:7: error: ‘NMax’ was not declared in this scope int S[NMax][NMax], Res; ^ user.cpp:3:13: error: ‘NMax’ was not declared in this scope int S[NMax][NMax], Res; ^ user.cpp: In function ‘int main()’: user.cpp:9:2: error: ‘NMax’ was not declared in this scope NMax=2004; ^ user.cpp:27:5: error: ‘S’ was not declared in this scope ++S[x1][y1]; ^ user.cpp:37:4: error: ‘S’ was not declared in this scope S[i][j] += S[i-1][j] + S[i][j-1] - S[i-1][j-1]; ^ user.cpp:40:3: error: ‘S’ was not declared in this scope S[X[i]][Y[i]] = 1; ^ user.cpp:44:4: error: ‘S’ was not declared in this scope S[i][j] = S[i-1][j] + S[i][j-1] - S[i-1][j-1] + (S[i][j] != 0); ^ user.cpp:50:11: error: ‘S’ was not declared in this scope Res += (S[x2][y2] - S[x2][y1-1] - S[x1-1][y2] + S[x1-1][y1-1] == 0); ^ user.cpp:10:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("plaja.in", "r", stdin); ^ user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("plaja.out", "w", stdout); ^ user.cpp:13:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &A, &B, &U); ^ user.cpp:15:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &X[i], &Y[i]); ^ user.cpp:16:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^ user.cpp:19:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &x1, &y1, &x2, &y2); ^ user.cpp:47:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (scanf("%d", &M); M; --M) ^ user.cpp:49:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &x1, &y1, &x2, &y2); ^

Ceva nu functioneaza?