| Problem | reinforcement |
|---|---|
| User | weccs |
| Submission Time | 2025-12-01 14:51:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:13:11: error: structured binding declaration cannot have type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
13 | string[h] dirs;
| ^~~
reinforcement.cpp:13:11: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
reinforcement.cpp:13:12: error: conflicting declaration ‘auto h’
13 | string[h] dirs;
| ^
reinforcement.cpp:10:9: note: previous declaration as ‘long long int h’
10 | int h, w, a, b, r;
| ^
reinforcement.cpp:13:15: error: expected initializer before ‘dirs’
13 | string[h] dirs;
| ^~~~
reinforcement.cpp:14:11: error: structured binding declaration cannot have type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
14 | string[h] colors;
| ^~~
reinforcement.cpp:14:11: note: type must be cv-qualified ‘auto’