Problem findingpavement
User shenshiqi
Submission Time 2025-11-12 14:16:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

findingpavement.cpp: In function ‘int main()’:
findingpavement.cpp:8:9: error: conflicting declaration ‘int c’
8 | int r, c;
| ^
findingpavement.cpp:7:9: note: previous declaration as ‘std::string c [rows][cols]’
7 | string c[rows][cols];
| ^
findingpavement.cpp:14:9: error: incompatible types in assignment of ‘int’ to ‘std::string [rows][cols]’ {aka ‘std::__cxx11::basic_string<char> [rows][cols]’}
14 | c = j;
| ^