Problem eatingparallelograms
User avinash
Submission Time 2025-06-20 14:27:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:9:2: error: expected initializer before ‘cin’
9 | cin << N
| ^~~
eatingparallelograms.cpp:12:22: error: ‘N’ was not declared in this scope
12 | for (int i = 0; i < N; i++){
| ^
eatingparallelograms.cpp:13:10: error: ‘P’ was not declared in this scope
13 | cin >> P[i]
| ^
eatingparallelograms.cpp:16:22: error: ‘N’ was not declared in this scope
16 | for (int i = 0; i < N; i++) {
| ^
eatingparallelograms.cpp:17:16: error: ‘S’ was not declared in this scope
17 | cin >> S[i];
| ^