Borderou de evaluare (job #2451908)

Utilizator mihai2003LLL LLL mihai2003 Data 28 august 2019 18:28:28
Problema Cel mai lung subsir comun Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:6: error: 'vector' in namespace 'std' does not name a template type std::vector<int>a,b,sol; ^~~~~~ main.cpp: In function 'int main()': main.cpp:11:5: error: 'a' was not declared in this scope a.push_back(0); ^ main.cpp:12:5: error: 'b' was not declared in this scope b.push_back(0); ^ main.cpp:29:20: error: 'y' was not declared in this scope if(a[x]==b[y]){ ^ main.cpp:30:13: error: 'sol' was not declared in this scope sol.push_back(a[x]),x--,y--; ^~~ main.cpp:40:18: error: 'sol' was not declared in this scope std::reverse(sol.begin(),sol.end()); ^~~ main.cpp:42:16: error: unable to deduce 'auto&&' from 'sol' for(int &x:sol) ^~~ main.cpp:26:9: warning: unused variable 'caut' [-Wunused-variable] int caut=dp[a.size()-1][b.size()-1]; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?