Borderou de evaluare (job #422436)

Utilizator cristiprgPrigoana Cristian cristiprg Data 22 martie 2010 18:06:16
Problema Pirati Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: expected ',' or ';' before 'int' int n, m, Q, a[DIM][DIM], nr_insule, v[DIM*DIM]; ^~~ main.cpp: In function 'void read()': main.cpp:21:23: error: 'n' was not declared in this scope fscanf(f, "%d%d%d", &n, &m, &Q); ^ main.cpp:21:27: error: 'm' was not declared in this scope fscanf(f, "%d%d%d", &n, &m, &Q); ^ main.cpp:21:31: error: 'Q' was not declared in this scope fscanf(f, "%d%d%d", &n, &m, &Q); ^ main.cpp:37:5: error: 'a' was not declared in this scope a[i][j] = -1; ^ main.cpp:39:5: error: 'a' was not declared in this scope a[i][j] = 0; ^ main.cpp: In function 'bool OK(int, int, int)': main.cpp:47:19: error: 'n' was not declared in this scope if (i < 1 || i > n || j < 1 || j > m) ^ main.cpp:47:37: error: 'm' was not declared in this scope if (i < 1 || i > n || j < 1 || j > m) ^ main.cpp:50:6: error: 'a' was not declared in this scope if (a[i][j] != 0 && type == 1) ^ main.cpp: In function 'void fill(int, int, int)': main.cpp:60:2: error: 'a' was not declared in this scope a[i][j] = val; ^ main.cpp: In function 'void fill2(int, int, std::vector<int>&)': main.cpp:68:2: error: 'a' was not declared in this scope a[i][j] = -2; ^ main.cpp:72:37: error: 'v' was not declared in this scope if (a[i+vi[d] ][j+vj[d]] > 0 && !v[ a[i+vi[d] ][j+vj[d]] ]) ^ main.cpp: In function 'void clear(std::vector<int>&)': main.cpp:86:3: error: 'v' was not declared in this scope v[*it] = 0; ^ main.cpp: In function 'void construct_graph()': main.cpp:102:23: error: 'n' was not declared in this scope for (int i = 1; i <= n; ++i) ^ main.cpp:103:24: error: 'm' was not declared in this scope for (int j = 1; j <= m; ++j) Non zero exit status: 1

Ceva nu functioneaza?