Pagini recente » Borderou de evaluare (job #1424752) | Borderou de evaluare (job #2581034) | Borderou de evaluare (job #1762517) | Borderou de evaluare (job #1073274) | Borderou de evaluare (job #1371889)
Borderou de evaluare (job #1371889)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&n);
^
user.cpp:13:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld%ld",&p,&q);
^
user.cpp:13:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:30:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld\n",v[n+2]-1);
^
user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("unuzero.in","r",stdin);
^
user.cpp:11:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("unuzero.out","w",stdout);
^
user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:13:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&p,&q);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 0ms | 436kb | OK | 10 |
3 | 0ms | 436kb | OK | 10 |
4 | 0ms | 440kb | OK | 10 |
5 | 0ms | 440kb | OK | 10 |
6 | 0ms | 444kb | OK | 10 |
7 | 0ms | 1208kb | OK | 10 |
8 | 20ms | 6548kb | OK | 10 |
9 | 24ms | 8000kb | OK | 10 |
10 | 28ms | 8240kb | OK | 10 |
Punctaj total | 100 |