Borderou de evaluare (job #1602373)

Utilizator ramsesRamses ramses Data 16 februarie 2016 19:06:56
Problema Charlie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&p); ^ user.cpp:20:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(f,"%d",&p); ^ user.cpp:22:25: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100000]’ [-Wformat=] fscanf(f,"%s",&s); ^ user.cpp:23:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (l=2;l<strlen(s)-1;l++) ^ user.cpp:27:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ((i<strlen(s)-1)&&(ok==1)) ^ user.cpp:38:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",m); ^ user.cpp:63:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(g,"%d",pr); ^ user.cpp:17:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&p); ^ user.cpp:20:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&p); ^ user.cpp:22:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s",&s); ^ user.cpp:44:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&t); fscanf(f,"%c",&c); ^ user.cpp:44:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&t); fscanf(f,"%c",&c); ^ user.cpp:16:41: warning: ‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized] long int p,i=2,k,m=0,l,ok=1,pr=0,vf,n; char t; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK5
20ms448kbOK5
30ms448kbOK5
4Depăşit512kbTime limit exceeded.0
5Depăşit492kbTime limit exceeded.0
60ms440kbIncorect0
70ms444kbOK5
80ms444kbOK5
90ms448kbOK5
100ms456kbOK5
110ms496kbOK5
120ms464kbOK5
130ms488kbOK5
144ms484kbIncorect0
150ms464kbOK5
160ms476kbOK5
170ms468kbOK5
184ms476kbIncorect0
194ms480kbIncorect0
200ms448kbOK5
Punctaj total70

Ceva nu functioneaza?