Borderou de evaluare (job #3205043)
Utilizator | Data | 18 februarie 2024 18:03:36 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void dij()':
main.cpp:34:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
34 | for(j=0;j<L[nc].size();++j)
| ~^~~~~~~~~~~~~
main.cpp: In function 'void afis()':
main.cpp:63:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
63 | int main(){
| ^~
main.cpp:63:9: note: remove parentheses to default-initialize a variable
63 | int main(){
| ^~
| --
main.cpp:63:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:63:11: error: a function-definition is not allowed here before '{' token
63 | int main(){
| ^
main.cpp:67:11: error: expected '}' at end of input
67 | return 0;}
| ^
main.cpp:55:12: note: to match this '{'
55 | void afis(){
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !