Borderou de evaluare (job #1844764)

Utilizator isav_costinVlad Costin Andrei isav_costin Data 10 ianuarie 2017 14:06:37
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘int cmp_(char*, char*)’: user.cpp:19:18: warning: NULL used in arithmetic [-Wpointer-arith] while( a[i]!=NULL && b[i]!=NULL && a[i]==b[i] ) ^ user.cpp:19:32: warning: NULL used in arithmetic [-Wpointer-arith] while( a[i]!=NULL && b[i]!=NULL && a[i]==b[i] ) ^ user.cpp:22:15: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]==NULL && b[i]!=NULL ) ^ user.cpp:22:29: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]==NULL && b[i]!=NULL ) ^ user.cpp:25:19: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]!=NULL && b[i]==NULL ) ^ user.cpp:25:33: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]!=NULL && b[i]==NULL ) ^ user.cpp:28:23: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]==NULL && b[i]==NULL ) ^ user.cpp:28:37: warning: NULL used in arithmetic [-Wpointer-arith] if( a[i]==NULL && b[i]==NULL ) ^ user.cpp: In function ‘int main()’: user.cpp:86:34: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[6]’ [-Wformat=] scanf( "\n%s", &v[i].cuv ); ^ user.cpp:71:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "zimeria.in", "r", stdin ); ^ user.cpp:72:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen( "zimeria.out", "w", stdout ); ^ user.cpp:77:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "%d%d\n", &p, &n ); ^ user.cpp:86:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf( "\n%s", &v[i].cuv ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK5
20ms284kbOK5
340ms568kbOK5
480ms860kbOK5
5168ms1448kbOK5
6Depăşit2584kbTime limit exceeded.0
70ms268kbOK5
80ms280kbOK5
90ms284kbOK5
104ms296kbOK5
118ms328kbOK5
1216ms392kbOK5
1336ms504kbOK5
1476ms736kbOK5
1596ms852kbOK5
16152ms1152kbOK5
17196ms1440kbOK5
18260ms1740kbOK5
19Depăşit2144kbTime limit exceeded.0
20Depăşit2580kbTime limit exceeded.0
Punctaj total85

Ceva nu functioneaza?