Borderou de evaluare (job #1993715)

Utilizator giotoPopescu Ioan gioto Data 23 iunie 2017 17:04:08
Problema Perb Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:23:49: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(s[j] == 'A') ++dif[rest][s[j]]; ^ user.cpp:24:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(s[j] == 'C') ++dif[rest][s[j]]; ^ user.cpp:25:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(s[j] == 'G') ++dif[rest][s[j]]; ^ user.cpp:26:54: warning: array subscript has type ‘char’ [-Wchar-subscripts] else if(s[j] == 'T') ++dif[rest][s[j]]; ^ user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perb.in", "r", stdin); ^ user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perb.out", "w", stdout); ^ user.cpp:11:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s + 1); ^ user.cpp:34:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &l, &r); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms296kbOK10
20ms352kbOK10
340ms556kbOK10
440ms416kbOK10
5116ms352kbOK10
6412ms840kbOK10
7Depăşit1128kbTime limit exceeded.0
8Depăşit1384kbTime limit exceeded.0
9Depăşit1668kbTime limit exceeded.0
10Depăşit1956kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?