Problem | lunchbox |
---|---|
User | JK13 |
Submission Time | 2023-11-09 11:01:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n >> M;
| ^~~
lunchbox.cpp:4:18: error: ‘array’ was not declared in this scope
4 | int x = sort(array[n]smaller(x));)
| ^~~~~
lunchbox.cpp:4:13: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
4 | int x = sort(array[n]smaller(x));)
| ^~~~
| short
lunchbox.cpp:4:38: error: expected primary-expression before ‘)’ token
4 | int x = sort(array[n]smaller(x));)
| ^
lunchbox.cpp:9:5: error: ‘else’ without a previous ‘if’
9 | else if (int x>=k){
| ^~~~
lunchbox.cpp:9:19: error: expected initializer before ‘>=’ token
9 | else if (int x>=k){
| ^~
lunchbox.cpp:9:19: error: expected ‘)’ before ‘>