Pagini recente » Borderou de evaluare (job #246106) | Borderou de evaluare (job #2208671) | Borderou de evaluare (job #578638) | Borderou de evaluare (job #476654) | Borderou de evaluare (job #1602373)
Borderou de evaluare (job #1602373)
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 |
| 1 | 0ms | 444kb | OK | 5 |
| 2 | 0ms | 448kb | OK | 5 |
| 3 | 0ms | 448kb | OK | 5 |
| 4 | Depăşit | 512kb | Time limit exceeded. | 0 |
| 5 | Depăşit | 492kb | Time limit exceeded. | 0 |
| 6 | 0ms | 440kb | Incorect | 0 |
| 7 | 0ms | 444kb | OK | 5 |
| 8 | 0ms | 444kb | OK | 5 |
| 9 | 0ms | 448kb | OK | 5 |
| 10 | 0ms | 456kb | OK | 5 |
| 11 | 0ms | 496kb | OK | 5 |
| 12 | 0ms | 464kb | OK | 5 |
| 13 | 0ms | 488kb | OK | 5 |
| 14 | 4ms | 484kb | Incorect | 0 |
| 15 | 0ms | 464kb | OK | 5 |
| 16 | 0ms | 476kb | OK | 5 |
| 17 | 0ms | 468kb | OK | 5 |
| 18 | 4ms | 476kb | Incorect | 0 |
| 19 | 4ms | 480kb | Incorect | 0 |
| 20 | 0ms | 448kb | OK | 5 |
| Punctaj total | 70 |