Borderou de evaluare (job #3334237)

Utilizator postolacheepostolache postolachee Data 17 ianuarie 2026 00:24:01
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:73:13: warning: variable 'ok' set but not used [-Wunused-but-set-variable] 73 | int ok=true; | ^~ In file included from /usr/include/c++/12.2.1/bits/stl_algobase.h:64, from /usr/include/c++/12.2.1/bits/specfun.h:45, from /usr/include/c++/12.2.1/cmath:1935, from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:41, from main.cpp:1: In constructor 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = long long int&; _U2 = long long int&; _T1 = long long int; _T2 = long long int]', inlined from 'int main()' at main.cpp:76:15: /usr/include/c++/12.2.1/bits/stl_pair.h:281:42: warning: 's2' may be used uninitialized [-Wmaybe-uninitialized] 281 | : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:34:13: note: 's2' was declared here 34 | int s1, s2, e1, e2; | ^~ In constructor 'constexpr std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = long long int&; _U2 = long long int&; _T1 = long long int; _T2 = long long int]', inlined from 'int main()' at main.cpp:76:15: /usr/include/c++/12.2.1/bits/stl_pair.h:281:11: warning: 's1' may be used uninitialized [-Wmaybe-uninitialized] 281 | : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:34:9: note: 's1' was declared here 34 | int s1, s2, e1, e2; | ^~ main.cpp:89:22: warning: 'e2' may be used uninitialized [-Wmaybe-uninitialized] 89 | if(vis[e1][e2] == 1)l = mid; | ^ main.cpp:34:21: note: 'e2' was declared here 34 | int s1, s2, e1, e2; | ^~ main.cpp:89:18: warning: 'e1' may be used uninitialized [-Wmaybe-uninitialized] 89 | if(vis[e1][e2] == 1)l = mid; | ^ main.cpp:34:17: note: 'e1' was declared here 34 | int s1, s2, e1, e2; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOk!10
20ms303kbOk!10
30ms303kbOk!10
40ms303kbOk!10
51ms557kbOk!10
61ms557kbOk!10
75ms1888kbOk!10
819ms4546kbOk!10
964ms16867kbOk!10
101ms561kbOk!10
Punctaj total100

Ceva nu functioneaza?