Problem | findingpavement |
---|---|
User | Kannan |
Submission Time | 2023-12-23 20:51:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:7:11: error: structured binding declaration cannot have type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
7 | string[w][h] abcd;
| ^~~
findingpavement.cpp:7:11: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
findingpavement.cpp:7:12: error: conflicting declaration ‘auto w’
7 | string[w][h] abcd;
| ^
findingpavement.cpp:5:12: note: previous declaration as ‘int w’
5 | int h, w;
| ^
findingpavement.cpp:7:14: error: expected initializer before ‘[’ token
7 | string[w][h] abcd;
| ^
findingpavement.cpp:10:20: error: ‘abcd’ was not declared in this scope
10 | cin >> abcd[j][i];
| ^~~~