Borderou de evaluare (job #1377268)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
fscanf(f,"%d",&x);
^
user.cpp:14:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
fscanf(f,"%d",&num);
^
user.cpp:21:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
if(s==0) fprintf(g,"%d\n",x);
^
user.cpp:22:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
else if(s==1) fprintf(g,"%d\n",x-1);
^
user.cpp:25:46: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
if(a2>1) fprintf(g,"%d\n",x-1);
^
user.cpp:26:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
else fprintf(g,"%d\n",x-2);
^
user.cpp:10:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&x);
^
user.cpp:14:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&num);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 256kb | Incorect | 0 |
2 | 4ms | 256kb | OK | 10 |
3 | 4ms | 252kb | OK | 10 |
4 | 4ms | 256kb | OK | 10 |
5 | 8ms | 256kb | OK | 10 |
6 | 12ms | 256kb | OK | 10 |
7 | 20ms | 256kb | OK | 10 |
8 | 24ms | 256kb | Incorect | 0 |
9 | 44ms | 252kb | OK | 10 |
10 | 32ms | 252kb | Incorect | 0 |
Punctaj total | 70 |