Borderou de evaluare (job #2336847)

Utilizator ApostolIlieDanielApostol Daniel ApostolIlieDaniel Data 5 februarie 2019 16:39:02
Problema Lista lui Andrei Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:26:10: warning: array subscript has type 'char' [-Wchar-subscripts] car[a][b] = car[b][a] = 1; ^ main.cpp:26:13: warning: array subscript has type 'char' [-Wchar-subscripts] car[a][b] = car[b][a] = 1; ^ main.cpp:26:22: warning: array subscript has type 'char' [-Wchar-subscripts] car[a][b] = car[b][a] = 1; ^ main.cpp:26:25: warning: array subscript has type 'char' [-Wchar-subscripts] car[a][b] = car[b][a] = 1; ^ main.cpp:29:12: warning: array subscript has type 'char' [-Wchar-subscripts] dp[1][c] = 1; ^ main.cpp:33:21: warning: array subscript has type 'char' [-Wchar-subscripts] if (car[next][last] == 0) ^ main.cpp:33:27: warning: array subscript has type 'char' [-Wchar-subscripts] if (car[next][last] == 0) ^ main.cpp:34:30: warning: array subscript has type 'char' [-Wchar-subscripts] add (dp[i % 2][next], dp[1 - i % 2][last]); ^ main.cpp:34:51: warning: array subscript has type 'char' [-Wchar-subscripts] add (dp[i % 2][next], dp[1 - i % 2][last]); ^ main.cpp:37:26: warning: array subscript has type 'char' [-Wchar-subscripts] add (sol, dp[n % 2][c]); ^ main.cpp:19:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("nrcuv.in", "r", stdin); ^ main.cpp:20:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen ("nrcuv.out", "w", stdout); ^ main.cpp:21:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d\n", &n, &m); ^ main.cpp:23:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf ("%c %c\n", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbIncorect0
52ms131kbIncorect0
62ms131kbIncorect0
72ms131kbIncorect0
82ms131kbIncorect0
92ms131kbIncorect0
102ms131kbIncorect0
113ms131kbIncorect0
123ms131kbIncorect0
134ms131kbIncorect0
143ms131kbIncorect0
153ms131kbIncorect0
163ms131kbIncorect0
174ms131kbIncorect0
188ms131kbIncorect0
196ms131kbIncorect0
204ms131kbOK5
Punctaj total20

Ceva nu functioneaza?