| Problem | multipleswith8 |
|---|---|
| User | DaPeter |
| Submission Time | 2025-12-03 13:13:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
multipleswith8.cpp: In function ‘int main()’:
multipleswith8.cpp:10:11: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
10 | char n = "8";
| ^~~
| |
| const char*
multipleswith8.cpp:13:15: error: ‘std::string’ {aka ‘class std::__cxx11::basic_string<char>’} has no member named ‘contains’
13 | if (str_num.contains(n){
| ^~~~~~~~
multipleswith8.cpp:16:9: error: expected ‘)’ before ‘;’ token
16 | num+=M;
| ^
| )
multipleswith8.cpp:13:6: note: to match this ‘(’
13 | if (str_num.contains(n){
| ^