Pagini recente » Borderou de evaluare (job #1664646) | Borderou de evaluare (job #2283602) | Borderou de evaluare (job #2301912) | Borderou de evaluare (job #3120370) | Borderou de evaluare (job #1774839)
Borderou de evaluare (job #1774839)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d%d",&n,&m);
^
user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
user.cpp:20:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d",&a[i]);
^
user.cpp:30:83: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n",min(rmq[x][log[y-x+1]],rmq[y-doi[log[y-x+1]]+1][log[y-x+1]]));
^
user.cpp:10:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.in","r",stdin);
^
user.cpp:11:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.out","w",stdout);
^
user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&m);
^
user.cpp:20:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^
user.cpp:29:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:15:26: warning: iteration 17u invokes undefined behavior [-Waggressive-loop-optimizations]
doi[i]=doi[i-1]*2;
^
user.cpp:14:5: note: containing loop
for (i=1; i<=20; i++)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 268kb | OK | 10 | 10 |
2 | 0ms | 280kb | OK | 10 | 10 |
3 | 0ms | 668kb | OK | 10 | 10 |
4 | 100ms | 4172kb | OK | 10 | 10 |
5 | 116ms | 4180kb | OK | 10 | 20 |
6 | 644ms | 4956kb | OK | 10 |
7 | 664ms | 6524kb | OK | 10 | 10 |
8 | 780ms | 8072kb | OK | 10 | 10 |
9 | 868ms | 8072kb | OK | 10 | 10 |
10 | 964ms | 8076kb | OK | 10 | 10 |
Punctaj total | 100 |