Test: off_by_one.cpp off_by_one.cpp:17:10: warning: character constant too long for its type 17 | {'Fixed': 'Correct bounds'} | ^~~~~~~ off_by_one.cpp:17:19: warning: character constant too long for its type 17 | {'Fixed': 'Correct bounds'} | ^~~~~~~~~~~~~~~~ off_by_one.cpp:20:14: error: 'cout' in namespace 'std' does not name a type 20 | std::cout << std::endl; | ^~~~ In file included from off_by_one.cpp:1: /usr/local/include/c++/13.4.0/iostream:63:18: note: 'std::cout' declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ off_by_one.cpp:21:6: error: expected ';' after class definition 21 | } | ^ | ; off_by_one.cpp: In constructor 'Matrix::Matrix()': off_by_one.cpp:9:17: error: 'data_' was not declared in this scope 9 | data_[i][j] = i * 5 + j; | ^~~~~ off_by_one.cpp: In member function 'void Matrix::printTopRow()': off_by_one.cpp:17:17: error: expected ';' before ':' token 17 | {'Fixed': 'Correct bounds'} | ^ off_by_one.cpp:18:26: error: 'data_' was not declared in this scope 18 | std::cout << data_[0][i] << " "; | ^~~~~ off_by_one.cpp:18:35: error: 'i' was not declared in this scope 18 | std::cout << data_[0][i] << " "; | ^ off_by_one.cpp: At global scope: off_by_one.cpp:23:1: error: expected unqualified-id before 'private' 23 | private: | ^~~~~~~ off_by_one.cpp:25:1: error: expected declaration before '}' token 25 | }; | ^