Problem | lunchbox |
---|---|
User | AwkUngenially |
Submission Time | 2025-03-31 13:17:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:17: error: expected ‘;’ before ‘)’ token
8 | for (x > 0; x--) {
| ^
| ;
lunchbox.cpp:13:9: error: request for member ‘begin’ in ‘a’, which is of non-class type ‘std::string [x]’ {aka ‘std::__cxx11::basic_string<char> [x]’}
13 | sort(a.begin, a.end());
| ^~~~~
lunchbox.cpp:13:18: error: request for member ‘end’ in ‘a’, which is of non-class type ‘std::string [x]’ {aka ‘std::__cxx11::basic_string<char> [x]’}
13 | sort(a.begin, a.end());
| ^~~
lunchbox.cpp:14:15: error: expected ‘)’ before ‘;’ token
14 | while (y >= 0; x++) {
| ~ ^
| )
lunchbox.cpp:14:20: error: expected ‘;’ before ‘)’ token
14 | while (y >= 0; x++) {
| ^
| ;