Pagini recente » Cod sursa (job #1146513) | Cod sursa (job #3315631) | Cod sursa (job #2230431) | Cod sursa (job #1053065) | Borderou de evaluare (job #1800188)
Borderou de evaluare (job #1800188)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d%d",&n,&x);
^
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:14:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
fscanf(f,"%d",&y);
^
user.cpp:24:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
fprintf(g,"%d\n",n-1-um[n-1]);
^
user.cpp:25:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=]
for(i=0;i<n-1-um[n-1];i++) fprintf(g,"%d\n",v[i]);
^
user.cpp:12:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d%d",&n,&x);
^
user.cpp:14:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&y);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 8ms | 752kb | OK | 10 |
| 2 | 44ms | 1844kb | Incorect | 0 |
| 3 | 132ms | 4696kb | Incorect | 0 |
| 4 | 264ms | 8084kb | Incorect | 0 |
| 5 | 40ms | 1536kb | Incorect | 0 |
| 6 | 24ms | 1064kb | Incorect | 0 |
| 7 | 28ms | 1684kb | OK | 10 |
| 8 | 0ms | 356kb | Incorect | 0 |
| 9 | 0ms | 348kb | OK | 10 |
| 10 | 0ms | 280kb | OK | 10 |
| Punctaj total | 40 |