Borderou de evaluare (job #1232178)

Utilizator bogdanpaunFMI Paun Bogdan Gabriel bogdanpaun Data 22 septembrie 2014 12:15:47
Problema Cristale Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:15:13: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[a] = ap[b] = ap[c] = 0; ^ user.cpp:15:21: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[a] = ap[b] = ap[c] = 0; ^ user.cpp:15:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] ap[a] = ap[b] = ap[c] = 0; ^ user.cpp:20:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++ap[ ch[len] ]; ^ user.cpp:23:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[a] == x ) {printf("%d \n",x); continue; } ^ user.cpp:24:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[b] == x ) {printf("%d \n",x); continue; } ^ user.cpp:25:17: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[c] == x ) {printf("%d \n",x); continue; } ^ user.cpp:26:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[a]%2 && ap[b]%2 &&ap[c]%2) {printf("2\n"); continue; } ^ user.cpp:26:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[a]%2 && ap[b]%2 &&ap[c]%2) {printf("2\n"); continue; } ^ user.cpp:26:40: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( ap[a]%2 && ap[b]%2 &&ap[c]%2) {printf("2\n"); continue; } ^ user.cpp:27:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( !(ap[a]%2 || ap[b]%2 ||ap[c]%2) ) {printf("2\n"); continue; } ^ user.cpp:27:31: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( !(ap[a]%2 || ap[b]%2 ||ap[c]%2) ) {printf("2\n"); continue; } ^ user.cpp:27:42: warning: array subscript has type ‘char’ [-Wchar-subscripts] if( !(ap[a]%2 || ap[b]%2 ||ap[c]%2) ) {printf("2\n"); continue; } ^ user.cpp:11:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cristale.in","r",stdin); ^ user.cpp:12:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cristale.out","w",stdout); ^ user.cpp:13:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c %c %c\n%d",&a,&b,&c,&n); ^ user.cpp:16:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbOK10
20ms236kbOK10
30ms232kbOK10
40ms248kbOK10
50ms248kbOK10
60ms248kbOK10
70ms248kbOK10
80ms232kbOK10
90ms248kbOK10
100ms248kbOK10
Punctaj total100

Ceva nu functioneaza?