Borderou de evaluare (job #2564890)

Utilizator FrostfireMagirescu Tudor Frostfire Data 2 martie 2020 10:53:38
Problema Triunghi5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:12:1: error: 'vector' does not name a type vector <int> sol; ^~~~~~ main.cpp: In function 'int main()': main.cpp:31:37: error: 'sol' was not declared in this scope { for(int i=1; i<=n; i++) sol.push_back(v[i]); ^~~ main.cpp:35:46: error: 'sol' was not declared in this scope if(nr1 == 1 && nr2 == 1) sol.push_back(1), sol.push_back(1), idx += 2; ^~~ main.cpp:36:26: error: 'sol' was not declared in this scope else sol.push_back(nr1), idx++; ^~~ main.cpp:42:26: error: 'sol' was not declared in this scope { sort(sol.begin(), sol.end()); ^~~ main.cpp:47:32: error: 'val' was not declared in this scope if(val <= val3) sol.push_back(sol[0]), ok = 1, idx++; ^~~ main.cpp:47:39: error: 'val3' was not declared in this scope if(val <= val3) sol.push_back(sol[0]), ok = 1, idx++; ^~~~ main.cpp:50:40: error: 'val2' was not declared in this scope if(val2 <= inf - val && val2 + val <= val3) sol.push_back(val), ok = 1, idx++; ^~~~ main.cpp:50:54: error: 'val' was not declared in this scope if(val2 <= inf - val && val2 + val <= val3) sol.push_back(val), ok = 1, idx++; ^~~ main.cpp:50:75: error: 'val3' was not declared in this scope if(val2 <= inf - val && val2 + val <= val3) sol.push_back(val), ok = 1, idx++; ^~~~ main.cpp:49:41: warning: unused variable 'val1' [-Wunused-variable] { int val1 = sol[i-2], val2 = sol[i-1], val3 = sol[i], val = val1 + val2; ^~~~ main.cpp:46:33: warning: unused variable 'val1' [-Wunused-variable] int val1 = sol[0], val2 = sol[0], val3 = sol[1], val = val1 + val2; ^~~~ main.cpp:57:26: error: 'sol' was not declared in this scope { sort(sol.begin(), sol.end()); ^~~ main.cpp:60:52: error: 'val2' was not declared in this scope { long long val = val1 + val2; ^~~~ main.cpp:68:18: error: 'sol' was not declared in this scope sort(sol.begin(), sol.end()); ^~~ Non zero exit status: 1

Ceva nu functioneaza?