Problem card
User dieunq1309
Submission Time 2023-04-29 11:04:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

card.cpp: In function ‘int main()’:
card.cpp:9:19: error: no matching function for call to ‘toupper(std::string&)’
9 | str = toupper(str);
| ^
In file included from /usr/include/c++/9/cctype:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:35,
from card.cpp:1:
/usr/include/ctype.h:125:12: note: candidate: ‘int toupper(int)’
125 | extern int toupper (int __c) __THROW;
| ^~~~~~~
/usr/include/ctype.h:125:25: note: no known conversion for argument 1 from ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to ‘int’
125 | extern int toupper (int __c) __THROW;
| ~~~~^~~
In file included from /usr/include/c++/9/bits/basic_ios.h:37,
from /usr/include/c++/9/ios:44,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/incl