Borderou de evaluare (job #2415175)

Utilizator lupulescu2001Lupulescu Vlad lupulescu2001 Data 25 aprilie 2019 16:34:50
Problema Incurcatura Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:1: error: 'vector' does not name a type vector<int> g[nMax + 5]; ^~~~~~ main.cpp:12:1: error: 'vector' does not name a type vector<int> c[nMax + 5]; ^~~~~~ main.cpp:13:1: error: 'vector' does not name a type vector<int> gresit; ^~~~~~ main.cpp: In function 'void Solve1()': main.cpp:18:13: error: 'c' was not declared in this scope if (c[i].size() != g[i].size()) { ^ main.cpp:18:28: error: 'g' was not declared in this scope if (c[i].size() != g[i].size()) { ^ main.cpp:19:13: error: 'gresit' was not declared in this scope gresit.push_back(i); ^~~~~~ main.cpp:39:17: error: 'gresit' was not declared in this scope gresit.push_back(i); ^~~~~~ main.cpp:17:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (int i = 1; i <= n; i++) ^~~ main.cpp:41:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (auto i : gresit) ^~~ main.cpp:41:23: error: 'gresit' was not declared in this scope for (auto i : gresit) ^~~~~~ main.cpp: In function 'int main()': main.cpp:51:9: error: 'vector' was not declared in this scope vector<int> v; ^~~~~~ main.cpp:51:16: error: expected primary-expression before 'int' vector<int> v; ^~~ main.cpp:55:13: error: 'v' was not declared in this scope v.push_back(x); ^ main.cpp:56:13: error: 'c' was not declared in this scope c[x].push_back(i); ^ main.cpp:58:14: error: 'v' was not declared in this scope sort(v.begin(), v.end()); ^ main.cpp:59:9: error: 'g' was not declared in this scope g[i] = v; ^ Non zero exit status: 1

Ceva nu functioneaza?