Borderou de evaluare (job #3196954)

Utilizator and_Turcu Andrei and_ Data 25 ianuarie 2024 00:14:00
Problema AI Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:167:21: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations] 167 | mi[i][j]=N*N; | ^ main.cpp:166:22: note: within this loop 166 | for(int j=1;j<=2;j++) | ~^~~ In file included 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 function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'void Rezolvare()' at main.cpp:159:33: /usr/include/c++/12.2.1/bits/stl_algobase.h:259:15: warning: array subscript 4 is outside array bounds of 'int [2][2]' [-Warray-bounds] 259 | if (__a < __b) | ~~~~^~~~~ main.cpp: In function 'void Rezolvare()': main.cpp:23:5: note: at offset 16 into object 'mi' of size 16 23 | int mi[2][2]; | ^~ In function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'void Rezolvare()' at main.cpp:159:33: /usr/include/c++/12.2.1/bits/stl_algobase.h:259:15: warning: array subscript 5 is outside array bounds of 'int [2][2]' [-Warray-bounds] 259 | if (__a < __b) | ~~~~^~~~~ main.cpp: In function 'void Rezolvare()': main.cpp:23:5: note: at offset 20 into object 'mi' of size 16 23 | int mi[2][2]; | ^~ In function 'constexpr const _Tp& std::max(const _Tp&, const _Tp&) [with _Tp = int]', inlined from 'void Rezolvare()' at main.cpp:159:33: /usr/include/c++/12.2.1/bits/stl_algobase.h:259:15: warning: array subscript 6 is outside array bounds of 'int [2][2]' [-Warray-bounds] 259 | if (__a < __b) | ~~~~^~~~~ main.cpp: In function 'void Rezolvare()': main.cpp:23:5: note: at offset 24 into object 'mi' of size 16 23 | int mi[2][2]; | ^~ main.cpp: In function 'int main()': main.cpp:167:21: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations] 167 | mi[i][j]=N*N; | ^ main.cpp:165:18: note: within this loop 165 | for(int i=1;i<=2;i++) | ~^~~ main.cpp:167:20: warning: array subscript 2 is above array bounds of 'int [2]' [-Warray-bounds] 167 | mi[i][j]=N*N; | ~~~~~~~^ main.cpp:23:5: note: while referencing 'mi' 23 | int mi[2][2];
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms454kbKilled by Signal 110
29ms434kbKilled by Signal 110
39ms520kbKilled by Signal 110
410ms581kbKilled by Signal 110
510ms622kbKilled by Signal 110
612ms729kbKilled by Signal 110
79ms512kbKilled by Signal 110
89ms462kbKilled by Signal 110
910ms655kbKilled by Signal 110
1010ms864kbKilled by Signal 110
113ms884kbKilled by Signal 110
1214ms1085kbKilled by Signal 110
1310ms1212kbKilled by Signal 110
1411ms1306kbKilled by Signal 110
154ms1318kbKilled by Signal 110
162ms516kbKilled by Signal 110
174ms1208kbKilled by Signal 110
1811ms1417kbKilled by Signal 110
199ms1085kbKilled by Signal 110
209ms724kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?