Problem magick
User phoenixai0
Submission Time 2025-12-28 11:07:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

guess.cpp: In function ‘std::string guess(int, int, std::string)’:
guess.cpp:5:29: error: could not convert ‘(i + 1)’ from ‘int’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
5 | if (S[i] == '?') return i + 1;
| ~~^~~
| |
| int