Problem | flamethrower |
---|---|
User | AppleOnAstick |
Submission Time | 2023-11-09 12:01:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int32_t main()’:
flamethrower.cpp:10:21: error: ‘n’ was not declared in this scope
10 | for (int e = 0; e < n;e++) {
| ^
flamethrower.cpp:11:18: error: ‘sizeofwindow’ was not declared in this scope
11 | if (e - s + 1 > sizeofwindow) {
| ^~~~~~~~~~~~
flamethrower.cpp:12:10: error: ‘A’ was not declared in this scope
12 | sum -= A[s];
| ^
flamethrower.cpp:15:8: error: ‘A’ was not declared in this scope
15 | sum += A[e];
| ^
flamethrower.cpp:16:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | ans = max(ans, sum)
| ^~~
| abs
flamethrower.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
flamethrower.cpp:6:1: note: to match this ‘{’
6 | {
| ^