Borderou de evaluare (job #1845338)

Utilizator Walrus21andrei Walrus21 Data 11 ianuarie 2017 12:56:34
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:54: error: ‘N’ was not declared in this scope int i, j, n, m, pil, pic, pfl, pfc, p, u, l = 1, r = N * N, mid, nmx, D[NMAX][NMAX]; ^ user.cpp:15:58: error: ‘N’ was not declared in this scope int i, j, n, m, pil, pic, pfl, pfc, p, u, l = 1, r = N * N, mid, nmx, D[NMAX][NMAX]; ^ user.cpp: In function ‘void mx(int, int, int)’: user.cpp:36:32: error: ‘D’ was not declared in this scope if(!o[vvi][vvj] && D[vvi][vvj] >= rr) ^ user.cpp: In function ‘int main()’: user.cpp:59:17: error: ‘D’ was not declared in this scope D[i][j] = -1; ^ user.cpp:65:17: error: ‘D’ was not declared in this scope D[i][j] = 1; ^ user.cpp:84:9: error: ‘D’ was not declared in this scope D[0][i] = D[n + 1][i] = -1; ^ user.cpp:86:9: error: ‘D’ was not declared in this scope D[i][0] = D[i][m + 1] = -1; ^ user.cpp:93:17: error: ‘D’ was not declared in this scope if(!D[v.l][v.c]) ^ user.cpp:102:13: error: ‘mid’ was not declared in this scope mid = (l + r) / 2; ^ user.cpp:103:16: error: ‘D’ was not declared in this scope if(D[pil][pic] < mid) ^ user.cpp:113:21: error: ‘nmx’ was not declared in this scope nmx = mid; ^ user.cpp:118:20: error: ‘nmx’ was not declared in this scope printf("%d\n", nmx - 1); ^ user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.in", "r", stdin); ^ user.cpp:51:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.out", "w", stdout); ^ user.cpp:52:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n", &n, &m); ^ user.cpp:57:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &c); ^

Ceva nu functioneaza?