Borderou de evaluare (job #2110336)

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

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]]] - D[x][y]); ^ user.cpp:32:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] len = min(len,D[x - dx[C[i]]][y - dy[C[i]]] - D[x][y]); ^ 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
10ms300kbOK10
20ms312kbOK10
30ms484kbOK10
40ms480kbOK10
50ms424kbOK10
620ms3248kbOK10
724ms4632kbOK10
828ms5164kbOK10
928ms5192kbOK10
100ms304kbOK10
Punctaj total100

Ceva nu functioneaza?