Problem wabot
User justin271828
Submission Time 2024-05-28 14:37:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

wabot.cpp: In function ‘int main()’:
wabot.cpp:39:5: error: expected initializer before ‘w’
39 | w[0] = 0;
| ^
wabot.cpp:41:6: error: ‘w’ was not declared in this scope
41 | w[j] = w[j-1] + v.top();
| ^
wabot.cpp:53:1: error: expected ‘}’ at end of input
53 | }
| ^
wabot.cpp:29:37: note: to match this ‘{’
29 | for (int i = 1; i <= 1000000; i++) {
| ^
wabot.cpp:53:1: error: expected ‘}’ at end of input
53 | }
| ^
wabot.cpp:7:12: note: to match this ‘{’
7 | int main() {
| ^