Problem sunshine
User ARock
Submission Time 2023-11-20 20:07:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sunshine.cpp: In function ‘int32_t main()’:
sunshine.cpp:22:34: error: expected ‘;’ before ‘for’
22 | memset(memo, -1, sizeof memo)
| ^
| ;
23 | for (int i = 1; i <= N; i++) cin >> W[i] >> V[i];
| ~~~
sunshine.cpp:23:21: error: ‘i’ was not declared in this scope
23 | for (int i = 1; i <= N; i++) cin >> W[i] >> V[i];
| ^