Pagini recente » Borderou de evaluare (job #1288885) | Borderou de evaluare (job #1560307) | Borderou de evaluare (job #1869244) | Borderou de evaluare (job #2978307) | Borderou de evaluare (job #1393985)
Borderou de evaluare (job #1393985)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("hacker3.in","r",stdin);
^
user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("hacker3.out","w",stdout);
^
user.cpp:24:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:26:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a[i].x,&a[i].y);
^
user.cpp:28:66: warning: array subscript is above array bounds [-Warray-bounds]
if(dp[i-1][1].x + a[i].y*1LL*calc(dp[i-1][1].y) < dp[i-1][2].x + a[i].y*1LL*calc(dp[i-1][2].y)){
^
user.cpp:28:97: warning: array subscript is above array bounds [-Warray-bounds]
if(dp[i-1][1].x + a[i].y*1LL*calc(dp[i-1][1].y) < dp[i-1][2].x + a[i].y*1LL*calc(dp[i-1][2].y)){
^
user.cpp:34:31: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][1].y = dp[i-1][2].y;
^
user.cpp:37:20: warning: array subscript is above array bounds [-Warray-bounds]
if(dp[i-1][2].x + a[i].x*1LL*calc(dp[i-1][2].y) < dp[i-1][1].x + a[i].x*1LL*calc(dp[i-1][1].y)){
^
user.cpp:37:51: warning: array subscript is above array bounds [-Warray-bounds]
if(dp[i-1][2].x + a[i].x*1LL*calc(dp[i-1][2].y) < dp[i-1][1].x + a[i].x*1LL*calc(dp[i-1][1].y)){
^
user.cpp:38:16: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][2].x = dp[i-1][2].x + a[i].x*1LL*calc(dp[i-1][2].y);
^
user.cpp:39:31: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][2].y = dp[i-1][2].y+1;
^
user.cpp:39:16: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][2].y = dp[i-1][2].y+1;
^
user.cpp:42:16: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][2].x = dp[i-1][1].x + a[i].x*1LL*calc(dp[i-1][1].y);
^
user.cpp:43:16: warning: array subscript is above array bounds [-Warray-bounds]
dp[i][2].y = dp[i-1][1].y+1;
^
user.cpp:46:33: warning: array subscript is above array bounds [-Warray-bounds]
cout<<min(dp[n][1].x,dp[n][2].x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 436kb | Incorect | 0 | 0 |
2 | 0ms | 440kb | Incorect | 0 | 0 |
3 | 0ms | 444kb | Incorect | 0 | 0 |
4 | 0ms | 448kb | Incorect | 0 | 0 |
5 | 4ms | 476kb | Incorect | 0 | 0 |
6 | 4ms | 468kb | Incorect | 0 | 0 |
7 | 4ms | 472kb | Incorect | 0 | 0 |
8 | 4ms | 476kb | Incorect | 0 | 0 |
9 | 400ms | Depăşit | Memory limit exceeded. | 0 | 0 |
10 | 408ms | Depăşit | Memory limit exceeded. | 0 |
11 | 408ms | Depăşit | Memory limit exceeded. | 0 |
12 | 404ms | Depăşit | Memory limit exceeded. | 0 |
13 | 400ms | Depăşit | Memory limit exceeded. | 0 |
14 | 404ms | Depăşit | Memory limit exceeded. | 0 |
15 | 16ms | Depăşit | Memory limit exceeded. | 0 | 0 |
16 | 16ms | Depăşit | Memory limit exceeded. | 0 |
17 | 16ms | Depăşit | Memory limit exceeded. | 0 |
18 | 16ms | Depăşit | Memory limit exceeded. | 0 |
19 | 16ms | Depăşit | Memory limit exceeded. | 0 |
20 | 24ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |