Problem lunchbox
User Red123
Submission Time 2025-03-14 14:13:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:11:16: error: expected ‘;’ before ‘}’ token
11 | cin >> arr[i]
| ^
| ;
12 | }
| ~
lunchbox.cpp:13:25: error: ‘greatest’ was not declared in this scope
13 | sort(arr + 0, arr + a, greatest<int>());
| ^~~~~~~~
lunchbox.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
lunchbox.cpp:13:34: note: in expansion of macro ‘int’
13 | sort(arr + 0, arr + a, greatest<int>());
| ^~~
lunchbox.cpp:15:9: error: expected primary-expression before ‘<’ token
15 | if(b =< 10){
| ^
lunchbox.cpp:16:15: error: expected ‘;’ before ‘}’ token
16 | b += arr[i]
| ^
| ;
17 | }
|