Borderou de evaluare (job #2447703)

Utilizator lucametehauDart Monkey lucametehau Data 14 august 2019 12:50:55
Problema Casa Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:14:1: error: 'vector' does not name a type vector <pair <int, char>> ans; ^~~~~~ main.cpp:15:1: error: 'vector' does not name a type vector <int> v[100005], viz[100005]; ^~~~~~ main.cpp: In function 'void fill(int, int)': main.cpp:18:3: error: 'v' was not declared in this scope v[x][y] = nr; ^ main.cpp:19:3: error: 'viz' was not declared in this scope viz[x][y] = 1; ^~~ main.cpp:21:27: error: 'ans' was not declared in this scope nr++, fill(x, y + 1), ans.push_back(make_pair(v[x][y], 'E')); ^~~ main.cpp:23:27: error: 'ans' was not declared in this scope nr++, fill(x - 1, y), ans.push_back(make_pair(v[x][y], 'N')); ^~~ main.cpp:25:27: error: 'ans' was not declared in this scope nr++, fill(x + 1, y), ans.push_back(make_pair(v[x][y], 'S')); ^~~ main.cpp:27:27: error: 'ans' was not declared in this scope nr++, fill(x, y + 1), ans.push_back(make_pair(v[x][y], 'V')); ^~~ main.cpp: In function 'int main()': main.cpp:69:5: error: 'v' was not declared in this scope v[i].resize(m + 1), viz[i].resize(m + 1); ^ main.cpp:69:25: error: 'viz' was not declared in this scope v[i].resize(m + 1), viz[i].resize(m + 1); ^~~ main.cpp:73:14: error: 'v' was not declared in this scope cin >> v[i][j], pz = (j == 1 && v[i][j] && !pz ? i : pz); ^ main.cpp:77:8: error: 'ans' was not declared in this scope sort(ans.begin(), ans.end()); ^~~ main.cpp:79:17: error: unable to deduce 'auto&&' from 'ans' for(auto &p : ans) ^~~ Non zero exit status: 1

Ceva nu functioneaza?