Borderou de evaluare (job #3262824)

Utilizator iulianrotaruRotaru Gheorghe-Iulian iulianrotaru Data 11 decembrie 2024 17:39:26
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:76:23: warning: 'y' may be used uninitialized [-Wmaybe-uninitialized] 76 | Min[x][y] = D[x][y]; | ~~~~~~^ main.cpp:54:12: note: 'y' was declared here 54 | int x, y, xx, yy; | ^ 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 = int&; _U2 = int&; _T1 = short int; _T2 = short int]', inlined from 'int main()' at main.cpp:77:11: /usr/include/c++/12.2.1/bits/stl_pair.h:281:11: warning: 'x' 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:54:9: note: 'x' was declared here 54 | int x, y, xx, yy; | ^ main.cpp:79:23: warning: 'yy' may be used uninitialized [-Wmaybe-uninitialized] 79 | cout << Min[xx][yy]; | ^ main.cpp:54:19: note: 'yy' was declared here 54 | int x, y, xx, yy; | ^~ main.cpp:79:23: warning: 'xx' may be used uninitialized [-Wmaybe-uninitialized] 79 | cout << Min[xx][yy]; | ^ main.cpp:54:15: note: 'xx' was declared here 54 | int x, y, xx, yy; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOk!10
20ms303kbOk!10
30ms303kbOk!10
40ms557kbOk!10
51ms1081kbOk!10
61ms1081kbOk!10
79ms2916kbOk!10
823ms4902kbOk!10
982ms9969kbOk!10
101ms1085kbOk!10
Punctaj total100

Ceva nu functioneaza?