Borderou de evaluare (job #3267269)

Utilizator Bolfa_DBolfa Diana Bolfa_D Data 11 ianuarie 2025 10:39:43
Problema Desen Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void mst(int)': main.cpp:9:12: error: 'q' was not declared in this scope 9 | while(!q.empty()) | ^ main.cpp:11:9: error: 'x' was not declared in this scope 11 | x=q.top().first; | ^ main.cpp:12:9: error: 'y' was not declared in this scope 12 | y=q.top().second; | ^ main.cpp:14:12: error: 'use' was not declared in this scope; did you mean 'pause'? 14 | if(use[x]!=0) | ^~~ | pause main.cpp:16:20: error: 'v' was not declared in this scope 16 | for(auto i:v[x]) | ^ main.cpp:17:16: error: 'use' was not declared in this scope; did you mean 'pause'? 17 | if(use[i.second]==0 && ) | ^~~ | pause main.cpp:17:36: error: expected primary-expression before ')' token 17 | if(use[i.second]==0 && ) | ^ main.cpp:18:5: error: expected primary-expression before '}' token 18 | } | ^ main.cpp: In function 'int main()': main.cpp:22:10: error: 'n' was not declared in this scope; did you mean 'yn'? 22 | fin>>n; | ^ | yn main.cpp:25:14: error: 'p' was not declared in this scope 25 | fin>>p[i].l>>p[i].c; | ^ main.cpp:26:12: error: 'fr' was not declared in this scope 26 | if(fr[p[i].l][p[i].c]==0) | ^~ main.cpp:31:14: error: 'ans' was not declared in this scope; did you mean 'abs'? 31 | else ans[i]=ans[i-1]; | ^~~ | abs main.cpp:32:15: error: 'ans' was not declared in this scope; did you mean 'abs'? 32 | cout<<ans[i]<<'\n'; | ^~~ | abs Non zero exit status: 1

Ceva nu functioneaza?