Problem choochoo
User benji9736
Submission Time 2025-11-19 11:13:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

choochoo.cpp: In function ‘int main()’:
choochoo.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i = 1; i <= a; i++){
| ^
choochoo.cpp:11:2: error: ‘lowerb’ was not declared in this scope
11 | lowerb = tolower(b);
| ^~~~~~
choochoo.cpp:11:20: error: no matching function for call to ‘tolower(std::string&)’
11 | lowerb = tolower(b);
| ^
In file included from /usr/include/c++/9/cctype:42,
from /usr/include/c++/9/bits/localefwd.h:42,
from /usr/include/c++/9/ios:41,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from choochoo.cpp:1:
/usr/include/ctype.h:122:12: note: candidate: ‘int tolower(int)’
122 | extern int tolower (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:122:25: note: no known conversion for argument 1 from ‘std::strin