Borderou de evaluare (job #3172723)

Utilizator Ioana.SilviaLeahu Silvia-Ioana Ioana.Silvia Data 21 noiembrie 2023 09:41:30
Problema Cablaj Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:32:15: warning: overflow in conversion from 'float' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} changes value from '+Inff' to '2147483647' [-Woverflow] 32 | dist[0] = INFINITY; | ^~~~~~~~ main.cpp:42:19: warning: overflow in conversion from 'float' to 'int' changes value from '+Inff' to '2147483647' [-Woverflow] 42 | distMin = INFINITY; | ^~~~~~~~ In file included from /usr/include/c++/12.2.1/vector:65, from /usr/include/c++/12.2.1/functional:62, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:71, from main.cpp:1: In member function 'constexpr std::vector<bool, _Alloc>::reference std::vector<bool, _Alloc>::operator[](size_type) [with _Alloc = std::allocator<bool>]', inlined from 'int main()' at main.cpp:58:23: /usr/include/c++/12.2.1/bits/stl_bvector.h:1036:23: warning: 'nodMin' may be used uninitialized [-Wmaybe-uninitialized] 1036 | { return begin()[__n]; } | ~~~~~~~^ main.cpp: In function 'int main()': main.cpp:14:21: note: 'nodMin' was declared here 14 | int N, distMin, nodMin; | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK10
20ms303kbIncorect0
30ms303kbIncorect0
42ms303kbIncorect0
54ms303kbIncorect0
68ms303kbIncorect0
79ms303kbIncorect0
819ms303kbIncorect0
929ms303kbIncorect0
1029ms303kbIncorect0
Punctaj total10

Ceva nu functioneaza?