Pagini recente » Borderou de evaluare (job #2315971) | Borderou de evaluare (job #1295023) | Borderou de evaluare (job #1439936) | Borderou de evaluare (job #335346) | Borderou de evaluare (job #2843692)
Borderou de evaluare (job #2843692)
Raport evaluator
Compilare:
main.cpp: In function 'void dfs1(long long int, long long int)':
main.cpp:26:22: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
26 | bestson[2][x]=y, maxi=v[y];
| ~~~~~~~~~^
main.cpp:7:20: note: while referencing 'bestson'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~~~~~~
main.cpp: In function 'void dfs2(long long int, long long int)':
main.cpp:46:49: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
46 | dp[1][y] = max(dp[1][y], v[bestson[2][x]]);
| ~~~~~~~~~^
main.cpp:7:20: note: while referencing 'bestson'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~~~~~~
main.cpp:49:28: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
49 | dp[2][y] = max(dp[2][x], v[x]);
| ~~~~^
main.cpp:49:13: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
49 | dp[2][y] = max(dp[2][x], v[x]);
| ~~~~^
main.cpp:7:8: note: while referencing 'dp'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~
main.cpp:52:21: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
52 | else dp[2][y] = max(dp[2][y], v[bestson[1][x]]);
| ~~~~^
main.cpp:7:8: note: while referencing 'dp'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~
main.cpp:51:49: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
51 | dp[2][y] = max(dp[2][y], v[bestson[2][x]]);
| ~~~~~~~~~^
main.cpp:7:20: note: while referencing 'bestson'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~~~~~~
main.cpp:51:17: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
51 | dp[2][y] = max(dp[2][y], v[bestson[2][x]]);
| ~~~~^
main.cpp:7:8: note: while referencing 'dp'
7 | int n, dp[2][dim], bestson[2][dim], maxsub[dim], v[dim];
| ^~
main.cpp: In function 'int32_t main()':
main.cpp:78:50: warning: array subscript 2 is above array bounds of 'long long int [2][300002]' [-Warray-bounds]
78 | fout << max(maxsub[y], max(dp[1][y], dp[2][x])) << '\n';
| ~~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 10ms | 11108kb | Killed by Signal 11 | 0 |
2 | 11ms | 11022kb | Killed by Signal 11 | 0 |
3 | 11ms | 11022kb | Killed by Signal 11 | 0 |
4 | 10ms | 11022kb | Killed by Signal 11 | 0 |
5 | 29ms | 16203kb | Killed by Signal 11 | 0 |
6 | 109ms | 22433kb | Killed by Signal 11 | 0 |
7 | 159ms | 24907kb | Killed by Signal 11 | 0 |
8 | 264ms | 32366kb | Killed by Signal 11 | 0 |
9 | 284ms | 33472kb | Killed by Signal 11 | 0 |
10 | 305ms | 34725kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |