Problem | 7up |
---|---|
User | 123456789 |
Submission Time | 2023-10-20 15:01:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
7up.cpp: In function ‘int main()’:
7up.cpp:9:38: error: no match for ‘operator!=’ (operand types are ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘std::__cxx11::basic_string<char>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’})
9 | if (to_string(nombar).find('7') != to_string(nombar).end() or nombar % 7 == 0) cout << "UP!" << endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}
| std::__cxx11::basic_string<char>::size_type {aka long unsigned int}
In file included from /usr/include/c++/9/regex:62,