Borderou de evaluare (job #3327936)

Utilizator MirceaCUCUSirghe Mircea Anton MirceaCUCU Data 5 decembrie 2025 17:52:09
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 'int main()': main.cpp:25:29: error: 'makepair' was not declared in this scope 25 | lista[n1].push_back(makepair(n2, cost)); | ^~~~~~~~ main.cpp:29:14: warning: overflow in conversion from 'long int' to 'int' changes value from '6000000000' to '1705032704' [-Woverflow] 29 | d[i]=6000000000; | ^~~~~~~~~~ main.cpp:31:17: error: 'makepair' was not declared in this scope 31 | sett.insert(makepair(0,1)); | ^~~~~~~~ main.cpp:36:20: error: 's' was not declared in this scope 36 | sett.erase(s.begin()); | ^ main.cpp:37:29: error: request for member 'size' in 'lista', which is of non-class type 'std::vector<std::pair<int, int> > [100001]' 37 | for(int i=0;i<lista.size();i++) | ^~~~ main.cpp:34:13: warning: unused variable 'costx' [-Wunused-variable] 34 | int costx=sett.begin()->first; | ^~~~~ main.cpp:35:13: warning: unused variable 'nodx' [-Wunused-variable] 35 | int nodx=sett.begin()->second; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?