Borderou de evaluare (job #3197763)

Utilizator Manolea_Teodor_StefanManolea Teodor Stefan Manolea_Teodor_Stefan Data 27 ianuarie 2024 13:38:42
Problema Pitici Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:30:31: warning: loop variable 'edge' of type 'const std::pair<int, int>&' binds to a temporary constructed from type 'std::pair<const int, int>' [-Wrange-loop-construct] 30 | for (const pair<int,int>& edge : G[1]) { | ^~~~ main.cpp:30:31: note: use non-reference type 'const std::pair<int, int>' to make the copy explicit or 'const std::pair<const int, int>&' to prevent copying main.cpp:37:28: warning: comparison of integer expressions of different signedness: 'std::priority_queue<cv>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 37 | if (ans.size() == K) { | ~~~~~~~~~~~^~~~ main.cpp:42:39: warning: loop variable 'edge' of type 'const std::pair<int, int>&' binds to a temporary constructed from type 'std::pair<const int, int>' [-Wrange-loop-construct] 42 | for (const pair<int,int>& edge : G[pq.top().node]) { | ^~~~ main.cpp:42:39: note: use non-reference type 'const std::pair<int, int>' to make the copy explicit or 'const std::pair<const int, int>&' to prevent copying
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbOK10
33ms1466kbOK10
41ms557kbOK10
51ms557kbOK10
659ms19566kbOK10
749ms19509kbOK10
854ms20475kbMemory limit exceeded0
953ms20533kbMemory limit exceeded0
1053ms20639kbMemory limit exceeded0
Punctaj total70

Ceva nu functioneaza?