Borderou de evaluare (job #3041038)

Utilizator TeodorLuchianovTeo Luchianov TeodorLuchianov Data 30 martie 2023 20:56:20
Problema S2c Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'void normalize(int)': main.cpp:25:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 25 | for(int i = 0;i < aux.size();i++) { | ~~^~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:48:18: warning: iteration 2001 invokes undefined behavior [-Waggressive-loop-optimizations] 48 | dp[i][j] = 0; | ~~~~~~~~~^~~ main.cpp:47:23: note: within this loop 47 | for(int j = 0;j <= MMAX;j++) { | ~~^~~~~~~ main.cpp:56:18: warning: iteration 2000 invokes undefined behavior [-Waggressive-loop-optimizations] 56 | dp[i][j] = max(dp[i][j], dp[i][j - 1]); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:55:23: note: within this loop 55 | for(int j = 1;j <= MMAX;j++) { | ~~^~~~~~~ main.cpp:54:32: warning: array subscript 30000 is above array bounds of 'short int [2001]' [-Warray-bounds] 54 | ans = max(ans, dp[i][MMAX]); | ~~~~~~~~~~^ main.cpp:11:7: note: while referencing 'dp' 11 | short dp[1 + NMAX][1 + NMAX]; | ^~ main.cpp:54:32: warning: array subscript 30000 is above array bounds of 'short int [2001]' [-Warray-bounds] 54 | ans = max(ans, dp[i][MMAX]); | ~~~~~~~~~~^ main.cpp:11:7: note: while referencing 'dp' 11 | short dp[1 + NMAX][1 + NMAX]; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms303kbOK5
25ms303kbOK5
324ms819kbOK5
449ms1081kbOK5
579ms1683kbOK5
6104ms2088kbOK5
7158ms2899kbOK5
8213ms3710kbOK5
9272ms4534kbOK5
10272ms4534kbOK5
11273ms4530kbOK5
12273ms4521kbOK5
13416ms6553kbOK5
14446ms6955kbOK5
15476ms7360kbOK5
16545ms8171kbOK5
1771ms8536kbKilled by Signal 110
1867ms8531kbKilled by Signal 110
1972ms8527kbKilled by Signal 110
2071ms8531kbKilled by Signal 110
Punctaj total80

Ceva nu functioneaza?