Problem | prefixsums |
---|---|
User | christal |
Submission Time | 2023-11-09 15:28:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
prefixsums.cpp: In function ‘long long int precompute()’:
prefixsums.cpp:8:9: error: ‘N’ was not declared in this scope
8 | if (N == 0) {
| ^
prefixsums.cpp:13:16: error: ‘A’ was not declared in this scope
13 | return A[0] + sum(A + 1, N - 1);
| ^
prefixsums.cpp:17:1: error: a function-definition is not allowed here before ‘{’ token
17 | {
| ^
prefixsums.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
prefixsums.cpp:4:17: note: to match this ‘{’
4 | int precompute(){ // 1-indexed
| ^