| Problem | lunchbox |
|---|---|
| User | shaokai347 |
| Submission Time | 2026-01-27 16:57:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:20: error: conflicting declaration ‘std::vector<long long int> b’
6 | vector<long long> b;
| ^
lunchbox.cpp:4:15: note: previous declaration as ‘long long int b’
4 | long long a, b;
| ^
lunchbox.cpp:9:13: error: invalid types ‘long long int[int]’ for array subscript
9 | cin >> b[i];
| ^
lunchbox.cpp:11:9: error: request for member ‘begin’ in ‘b’, which is of non-class type ‘long long int’
11 | sort(b.begin(), b.end());
| ^~~~~
lunchbox.cpp:11:20: error: request for member ‘end’ in ‘b’, which is of non-class type ‘long long int’
11 | sort(b.begin(), b.end());
| ^~~
lunchbox.cpp:13:12: error: invalid types ‘long long int[long long int]’ for array subscript
13 | if (a>b[c]){
| ^
lunchbox.cpp:14:10: error: invalid