Borderou de evaluare (job #2144111)

Utilizator lucia.cstCostache Lucia lucia.cst Data 26 februarie 2018 15:43:22
Problema Sediu Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void citire()’: user.cpp:18:16: error: ‘x’ was not declared in this scope while(cin>>x>>y)[ ^ user.cpp:18:19: error: ‘y’ was not declared in this scope while(cin>>x>>y)[ ^ user.cpp:19:9: warning: capture of variable ‘a’ with non-automatic storage duration a[x].push_back(y); ^ user.cpp:11:14: note: ‘std::vector<int> a [16001]’ declared here vector <int> a[MAX]; ^ user.cpp:19:10: error: expected ‘,’ before ‘[’ token a[x].push_back(y); ^ user.cpp:19:10: error: expected identifier before ‘[’ token user.cpp:19:26: error: expected ‘]’ before ‘;’ token a[x].push_back(y); ^ user.cpp: In lambda function: user.cpp:19:26: error: expected ‘{’ before ‘;’ token user.cpp: In function ‘void citire()’: user.cpp:20:11: error: ‘y’ was not declared in this scope a[y].push_back(x); ^ user.cpp:20:24: error: ‘x’ was not declared in this scope a[y].push_back(x); ^ user.cpp: In function ‘void dfs(int)’: user.cpp:28:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1; i<a[x].size(); i++){ ^ user.cpp:37:13: error: expected ‘;’ before ‘}’ token } ^ user.cpp: In function ‘int main()’: user.cpp:52:9: error: ‘ans’ was not declared in this scope ans=min(ans, scor[i]); ^ user.cpp:63:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?