Borderou de evaluare (job #2110327)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 20 ianuarie 2018 15:52:13
Problema Aiacusarpe Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!in(x + dx[C[i]],y + dy[C[i]])){ ^ user.cpp:26:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!in(x + dx[C[i]],y + dy[C[i]])){ ^ user.cpp:29:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] x += dx[C[i]]; ^ user.cpp:30:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] y += dy[C[i]]; ^ user.cpp:32:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] len = min(len,D[x - dx[C[i]]][y - dy[C[i]]] + 1 - D[x][y]) - 1; ^ user.cpp:32:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] len = min(len,D[x - dx[C[i]]][y - dy[C[i]]] + 1 - D[x][y]) - 1; ^ user.cpp:34:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] D[x][y] = D[x - dx[C[i]]][y - dy[C[i]]] + 1; ^ user.cpp:34:46: warning: array subscript has type ‘char’ [-Wchar-subscripts] D[x][y] = D[x - dx[C[i]]][y - dy[C[i]]] + 1; ^ user.cpp:22:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d %d\n",&N,&M,&T); ^ user.cpp:23:27: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(C + 1,1000005,f); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:23:27: /usr/include/i386-linux-gnu/bits/stdio2.h:253:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer [enabled by default] return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms304kbOK10
20ms316kbOK10
30ms492kbIncorect0
40ms480kbOK10
50ms420kbOK10
624ms3248kbIncorect0
724ms4632kbIncorect0
828ms5160kbIncorect0
928ms5192kbOK10
100ms304kbOK10
Punctaj total60

Ceva nu functioneaza?