Borderou de evaluare (job #2567320)

Utilizator armigheGheorghe Liviu Armand armighe Data 3 martie 2020 16:36:56
Problema Sum Max Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:1: error: 'vector' does not name a type vector<int>a[2002],b[2002],c[2002]; ^~~~~~ main.cpp: In function 'int main()': main.cpp:14:9: error: 'a' was not declared in this scope a[i].push_back(0),b[i].push_back(0); ^ main.cpp:14:27: error: 'b' was not declared in this scope a[i].push_back(0),b[i].push_back(0); ^ main.cpp:18:12: error: 'a' was not declared in this scope f>>a[i][j]; ^ main.cpp:19:9: error: 'b' was not declared in this scope b[i][j]=max(b[i-1][j],b[i-1][j-1])+a[i][j]; ^ main.cpp:22:19: error: 'b' was not declared in this scope maxim=max(b[n][i],maxim); ^ main.cpp:23:5: error: 'c' was not declared in this scope c[n].push_back(0); ^ main.cpp:25:8: error: 'b' was not declared in this scope if(b[n][i]==maxim) ^ main.cpp:35:16: error: 'b' was not declared in this scope if(b[i][j]==b[i+1][j]-a[i+1][j]) ^ main.cpp:35:35: error: 'a' was not declared in this scope if(b[i][j]==b[i+1][j]-a[i+1][j]) ^ main.cpp:42:16: error: 'b' was not declared in this scope if(b[i][j]==b[i+1][j+1]-a[i+1][j+1]) ^ main.cpp:42:37: error: 'a' was not declared in this scope if(b[i][j]==b[i+1][j+1]-a[i+1][j+1]) ^ main.cpp:51:9: error: 'a' was not declared in this scope a[i+1].clear(); ^ main.cpp:52:9: error: 'b' was not declared in this scope b[i+1].clear(); ^ Non zero exit status: 1

Ceva nu functioneaza?