Problem lunchbox
User Yifei1234
Submission Time 2023-03-01 17:21:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:5: error: expected primary-expression before ‘.’ token
8 | cin>.arr[i];
| ^
lunchbox.cpp:11:6: error: ‘arr’ was not declared in this scope
11 | sort(arr,arr+n,greater<>());
| ^~~
lunchbox.cpp:15:3: error: expected ‘(’ before ‘else’
15 | else
| ^~~~
| (