Pagini recente » Borderou de evaluare (job #2136156) | Borderou de evaluare (job #692262) | Borderou de evaluare (job #2386663) | Borderou de evaluare (job #1638795) | Borderou de evaluare (job #1556726)
Borderou de evaluare (job #1556726)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=]
scanf("%d %d",&k,&n);
^
user.cpp:8:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=]
user.cpp:11:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
for(j=1;j<=n;++j) printf("%ld %ld\n",j,v[i+j]);
^
user.cpp:11:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
user.cpp:6:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kreg.in","r",stdin);
^
user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("kreg.out","w",stdout);
^
user.cpp:8:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&k,&n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | CORECT | 10 |
2 | 4ms | 296kb | CORECT | 10 |
3 | 0ms | 268kb | CORECT | 10 |
4 | 4ms | 288kb | CORECT | 10 |
5 | 16ms | 300kb | CORECT | 10 |
6 | 36ms | 284kb | CORECT | 10 |
7 | 40ms | 304kb | CORECT | 10 |
8 | 16ms | 276kb | CORECT | 10 |
9 | 28ms | 304kb | CORECT | 10 |
10 | 100ms | 300kb | CORECT | 10 |
Punctaj total | 100 |