Borderou de evaluare (job #1734923)

Utilizator silkMarin Dragos silk Data 28 iulie 2016 15:34:23
Problema Div Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void Solve()’: user.cpp:61:32: warning: array subscript has type ‘char’ [-Wchar-subscripts] alfa = ( alfa + rest[ s[i] ][N-i-1] ) % M; ^ user.cpp:67:93: warning: array subscript has type ‘char’ [-Wchar-subscripts] for( temp = xpn = 0, j = N - i - 1; j >= 0; --j, ++xpn ) temp = ( temp + rest[ s[j] ][xpn] ) % M; ^ user.cpp:72:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] temp = ( temp - rest[ s[j] ][xpn] + rest[ s[j+i] ][xpn] + M ) % M; ^ user.cpp:72:62: warning: array subscript has type ‘char’ [-Wchar-subscripts] temp = ( temp - rest[ s[j] ][xpn] + rest[ s[j+i] ][xpn] + M ) % M; ^ user.cpp: In function ‘void Read()’: user.cpp:14:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&M); ^ user.cpp:15:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c",&go); ^ user.cpp:16:32: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets( s, NMax - 1, stdin ); ^ user.cpp: In function ‘int main()’: user.cpp:84:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("div.in","r",stdin); ^ user.cpp:85:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("div.out","w",stdout); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
152ms460kbOK10
236ms460kbOK10
364ms460kbOK10
416ms468kbOK10
548ms468kbOK10
60ms468kbOK10
70ms468kbOK10
828ms468kbOK10
90ms468kbOK10
100ms464kbOK10
Punctaj total100

Ceva nu functioneaza?