Problem catlunch
User Z2077
Submission Time 2025-06-18 14:12:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp:20:19: error: missing terminating ' character
20 | cout << maxRes << '\n’;
| ^~~~~~~
catlunch.cpp:2:1: error: ‘vector’ does not name a type
2 | vector<long long> V;
| ^~~~~~
catlunch.cpp:3:1: error: ‘cin’ does not name a type
3 | cin >> N >> K;
| ^~~
catlunch.cpp:4:1: error: expected unqualified-id before ‘for’
4 | for (int i = 0; i < N; i++){
| ^~~
catlunch.cpp:4:17: error: ‘i’ does not name a type
4 | for (int i = 0; i < N; i++){
| ^
catlunch.cpp:4:24: error: ‘i’ does not name a type
4 | for (int i = 0; i < N; i++){
| ^
catlunch.cpp:20:1: error: ‘cout’ does not name a type
20 | cout << maxRes << '\n’;
| ^~~~