Problem eatingparallelograms
User ritesh
Submission Time 2025-06-20 14:26:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:14:17: error: expected ‘;’ before ‘}’ token
14 | cin >> size[i]
| ^
| ;
15 | }
| ~
eatingparallelograms.cpp:18:9: error: expected primary-expression before ‘int’
18 | for ( (int i = 0 ; i < N ; i++ ) {
| ^~~
eatingparallelograms.cpp:18:9: error: expected ‘)’ before ‘int’
18 | for ( (int i = 0 ; i < N ; i++ ) {
| ~^~~
| )
eatingparallelograms.cpp:18:21: error: ‘i’ was not declared in this scope
18 | for ( (int i = 0 ; i < N ; i++ ) {
| ^
eatingparallelograms.cpp:21:2: error: expected ‘}’ at end of input
21 | }
| ^
eatingparallelograms.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^