Borderou de evaluare (job #2320283)

Utilizator DanSDan Teodor Savastre DanS Data 14 ianuarie 2019 16:42:56
Problema Lista lui Andrei Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 10

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:33:13: warning: array subscript has type 'char' [-Wchar-subscripts] a[c1][c2] = 1; ^ main.cpp:33:17: warning: array subscript has type 'char' [-Wchar-subscripts] a[c1][c2] = 1; ^ main.cpp:34:13: warning: array subscript has type 'char' [-Wchar-subscripts] a[c2][c1] = 1; ^ main.cpp:34:17: warning: array subscript has type 'char' [-Wchar-subscripts] a[c2][c1] = 1; ^ main.cpp: In function 'void init()': main.cpp:21:17: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] d[1][i] = 1; ~~~~~~~~^~~ main.cpp:20:19: note: within this loop for(int i=1; i<=LITERE; i++) ~^~~~~~~~ main.cpp: In function 'int main()': main.cpp:56:22: warning: iteration 25 invokes undefined behavior [-Waggressive-loop-optimizations] ans += d[n][i]; ~~~~~~^ main.cpp:54:19: note: within this loop for(int i=1; i<=LITERE; i++) ~^~~~~~~~ main.cpp:45:26: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations] if(a[k][j] == 0 || a[j][k] == 0) ~~~~~~^ main.cpp:41:23: note: within this loop for(int j=1; j<=LITERE; j++) ~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbIncorect0
32ms131kbIncorect0
42ms131kbIncorect0
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
112ms131kbIncorect0
122ms131kbIncorect0
133ms131kbIncorect0
143ms131kbIncorect0
153ms131kbIncorect0
163ms131kbIncorect0
174ms131kbIncorect0
184ms131kbIncorect0
194ms262kbIncorect0
204ms131kbOK5
Punctaj total10

Ceva nu functioneaza?