Problem eatingparallelograms
User Nic010812
Submission Time 2025-06-20 14:13:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eatingparallelograms.cpp: In function ‘int main()’:
eatingparallelograms.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> n;
| ^~~
eatingparallelograms.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<long long>k(n);
| ^~~~~~
eatingparallelograms.cpp:5:12: error: expected primary-expression before ‘long’
5 | vector<long long>k(n);
| ^~~~
eatingparallelograms.cpp:13:8: error: ‘k’ was not declared in this scope
13 | k[j] = p;
| ^
eatingparallelograms.cpp:16:13: error: ‘k’ was not declared in this scope
16 | sort(k.rbegin(), k.rend());
| ^
eatingparallelograms.cpp:16:8: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
16 | sort(k.rbegin(), k.rend());
| ^~~~
| short
eatingparallelograms.cpp:17:8: error: ‘cout’ was no