Borderou de evaluare (job #1424103)
Utilizator | Data | 23 aprilie 2015 15:13:02 | |
---|---|---|---|
Problema | Pirati | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:19: error: size of array 'Viz' is too large
int Viz[NMAX][NMAX], Level[NMAX];
^
main.cpp:18:17: error: size of array 'a' is too large
int a[NMAX][NMAX];
^
main.cpp: In function 'void Fill(int, int)':
main.cpp:27:5: error: 'Viz' was not declared in this scope
Viz[x][y] = Nr;
^~~
main.cpp:29:83: error: 'a' was not declared in this scope
if(Viz[x + Dx[i]][y + Dy[i]] == 0 && inside(x + Dx[i], y + Dy[i]) == 1 && a[x + Dx[i]][y + Dy[i]] == a[x][y])
^
main.cpp: In function 'void Build_Graph(int, int)':
main.cpp:35:49: error: 'Viz' was not declared in this scope
if(inside(x + Dx[i], y + Dy[i]) == 1 && Viz[x + Dx[i]][y + Dy[i]] != Viz[x][y])
^~~
main.cpp: In function 'void dfs(int, int)':
main.cpp:49:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v[Nod].size(); ++i)
~~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:79:26: error: 'a' was not declared in this scope
scanf("%c", &a[i][j]);
^
main.cpp:84:16: error: 'Viz' was not declared in this scope
if(Viz[i][j] == 0){
^~~
main.cpp:98:21: error: 'Viz' was not declared in this scope
int Start = Viz[x1][y1];
^~~
main.cpp:73:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.in", "r", stdin);
^
main.cpp:74:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.out", "w", stdout);
^
main.cpp:75:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n", &n, &m, &q);
^
main.cpp:77:5: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; ++i, scanf("\n"))
^~~
main.cpp:97:49: 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);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !