Problem eatingparallelograms
User Haritha
Submission Time 2025-06-20 14:15:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp:1:9: error: ISO C++ forbids declaration of ‘intmain’ with no type [-fpermissive]
1 | intmain(){
| ^
eatingparallelograms.cpp: In function ‘int intmain()’:
eatingparallelograms.cpp:2:2: error: ‘intn’ was not declared in this scope; did you mean ‘int’?
2 | intn;
| ^~~~
| int
eatingparallelograms.cpp:3:2: error: ‘cin’ was not declared in this scope
3 | cin>>n
| ^~~
eatingparallelograms.cpp:3:7: error: ‘n’ was not declared in this scope
3 | cin>>n
| ^
eatingparallelograms.cpp:4:3: error: expected ‘}’ at end of input
4 | intcount
| ^~~~~~~~
eatingparallelograms.cpp:1:10: note: to match this ‘{’
1 | intmain(){
| ^