Problem lunchbox
User ilovepythonandhatecplusplus
Submission Time 2024-03-06 17:06:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:12:5: error: expected constructor, destructor, or type conversion before ‘(’ token
12 | sort(rows, rows+k);
| ^
lunchbox.cpp:13:1: error: expected unqualified-id before ‘if’
13 | if (k==0){
| ^~
lunchbox.cpp:17:1: error: expected unqualified-id before ‘if’
17 | if (k<=1){
| ^~
lunchbox.cpp:28:1: error: expected unqualified-id before ‘for’
28 | for (long long f = 0; f < k; f++){
| ^~~
lunchbox.cpp:28:24: error: ‘f’ does not name a type
28 | for (long long f = 0; f < k; f++){
| ^
lunchbox.cpp:28:31: error: ‘f’ does not name a type
28 | for (long long f = 0; f < k; f++){
| ^
lunchbox.cpp:37:1: error: ‘cout’ does not name a type
37 | cout<< gyat;
| ^~~~