Borderou de evaluare (job #2912487)

Utilizator lolismekAlex Jerpelea lolismek Data 8 iulie 2022 17:18:48
Problema Ecu Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:71:7: warning: array subscript 1 is above array bounds of 'double [1][32]' [-Warray-bounds] 71 | ans[1][1] = 1; | ~~~~~^ main.cpp:57:38: note: while referencing 'ans' 57 | double x[N + 1], p[N + 1], y[N + 1], ans[1][N + 1], trans[N + 1][N + 1]; | ^~~ main.cpp:73:8: warning: array subscript 1 is above array bounds of 'double [1][32]' [-Warray-bounds] 73 | ans[1][i + 1] = x[i]; | ~~~~~^ main.cpp:57:38: note: while referencing 'ans' 57 | double x[N + 1], p[N + 1], y[N + 1], ans[1][N + 1], trans[N + 1][N + 1]; | ^~~ main.cpp:89:16: warning: array subscript 1 is above array bounds of 'double [1][32]' [-Warray-bounds] 89 | fout << ans[1][i + 1] << ' '; | ~~~~~^ main.cpp:57:38: note: while referencing 'ans' 57 | double x[N + 1], p[N + 1], y[N + 1], ans[1][N + 1], trans[N + 1][N + 1]; | ^~~ main.cpp:73:17: warning: 'void* __builtin_memcpy(void*, const void*, long unsigned int)' offset 272 is out of the bounds [0, 256] of object 'ans' with type 'double [1][32]' [-Warray-bounds] 73 | ans[1][i + 1] = x[i]; | ~~~~~~~~~~~~~~^~~~~~ main.cpp:57:38: note: 'ans' declared here 57 | double x[N + 1], p[N + 1], y[N + 1], ans[1][N + 1], trans[N + 1][N + 1]; | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbOkay10
21ms184kbWrong answer!0
31ms184kbWrong answer!0
47ms245kbWrong answer!0
52ms184kbWrong answer!0
67ms184kbWrong answer!0
71ms184kbWrong answer!0
81ms184kbWrong answer!0
91ms184kbWrong answer!0
106ms290kbWrong answer!0
Punctaj total10

Ceva nu functioneaza?