Borderou de evaluare (job #3260130)

Utilizator Bolfa_DBolfa Diana Bolfa_D Data 30 noiembrie 2024 11:08:01
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:8:10: error: 'n' was not declared in this scope; did you mean 'yn'? 8 | fin>>n>>m; | ^ | yn main.cpp:8:13: error: 'm' was not declared in this scope; did you mean 'tm'? 8 | fin>>n>>m; | ^ | tm main.cpp:9:9: error: 'i' was not declared in this scope 9 | for(i=1;i<=m;++i) | ^ main.cpp:11:14: error: 'x' was not declared in this scope 11 | fin>>x>>y>>c; | ^ main.cpp:11:17: error: 'y' was not declared in this scope; did you mean 'yn'? 11 | fin>>x>>y>>c; | ^ | yn main.cpp:11:20: error: 'c' was not declared in this scope 11 | fin>>x>>y>>c; | ^ main.cpp:12:9: error: 'v' was not declared in this scope 12 | v[x].push_back({y,c}); | ^ main.cpp:15:5: error: 'q' was not declared in this scope 15 | q.push_back(1); | ^ main.cpp:16:11: error: 'i' was not declared in this scope 16 | while(i<=(n-1)*m && !q.empty()) | ^ main.cpp:18:9: error: 'x' was not declared in this scope 18 | x=q.front(); | ^ main.cpp:20:9: error: 'use' was not declared in this scope; did you mean 'pause'? 20 | use[x]=0; | ^~~ | pause main.cpp:21:20: error: 'v' was not declared in this scope 21 | for(auto i:v[x]) | ^ main.cpp:22:16: error: 'dist' was not declared in this scope 22 | if(dist[i.first]>i.second+dist[x]) | ^~~~ main.cpp:24:45: error: 'y' was not declared in this scope; did you mean 'yn'? 24 | dist[i.first]=i.second+dist[y]; | ^ | yn Non zero exit status: 1

Ceva nu functioneaza?