Problem eatingparallelograms
User 2PrairieWind5
Submission Time 2025-06-20 14:48:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:8:25: error: expected ‘;’ before ‘for’
8 | S_max = 0; P_max = 0
| ^
| ;
9 | for (int i =0; i< N; i++) { // Power
| ~~~
eatingparallelograms.cpp:9:20: error: ‘i’ was not declared in this scope
9 | for (int i =0; i< N; i++) { // Power
| ^
eatingparallelograms.cpp:18:25: error: expected ‘;’ before ‘}’ token
18 | P_max += P.at(i)
| ^
| ;
19 | }
| ~
eatingparallelograms.cpp:20:18: error: expected ‘;’ before ‘return’
20 | cout << P_max
| ^
| ;
......
24 | return 0;
| ~~~~~~