| Problem | stepgame |
|---|---|
| User | undefinedcritter |
| Submission Time | 2026-07-09 09:48:01 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
stepgame.cpp: In function ‘int main()’:
stepgame.cpp:12:10: error: ‘prefsum’ was not declared in this scope
12 | prefsum[i] = seq[i];
| ^~~~~~~
stepgame.cpp:15:6: error: ‘prefsum’ was not declared in this scope
15 | prefsum[i] = prefsum[i-1] + seq[i];
| ^~~~~~~
stepgame.cpp:18:34: error: no matching function for call to ‘std::vector<std::vector<long long int> >::vector(int&, int)’
18 | vector<vector<long long>> dp(N,0);
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from stepgame.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:650:2: note: candidate: ‘