Borderou de evaluare (job #3241462)
Utilizator | Data | 30 august 2024 17:16:51 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:1: error: expected ',' or ';' before 'int'
9 | int n, m, a, b, c, v[50001], d[50001];
| ^~~
main.cpp: In function 'int main()':
main.cpp:14:8: error: 'n' was not declared in this scope; did you mean 'yn'?
14 | f>>n>>m;
| ^
| yn
main.cpp:14:11: error: 'm' was not declared in this scope; did you mean 'tm'?
14 | f>>n>>m;
| ^
| tm
main.cpp:17:12: error: 'a' was not declared in this scope
17 | f>>a>>b>>c;
| ^
main.cpp:17:15: error: 'b' was not declared in this scope
17 | f>>a>>b>>c;
| ^
main.cpp:17:18: error: 'c' was not declared in this scope
17 | f>>a>>b>>c;
| ^
main.cpp:22:9: error: 'd' was not declared in this scope
22 | d[i]=inf;
| ^
main.cpp:24:5: error: 'd' was not declared in this scope
24 | d[1]=0;
| ^
main.cpp:30:16: error: 'v' was not declared in this scope
30 | if(v[j]==0&&d[j]<mn)
| ^
main.cpp:38:9: error: 'v' was not declared in this scope
38 | v[mnp]=1;
| ^
main.cpp:39:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int j=0;j<l[mnp].size();j++)
| ~^~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !