Problem | uniquenumbers |
---|---|
User | Elnathan |
Submission Time | 2024-02-12 15:54:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:16:54: error: found ‘:’ in nested-name-specifier, expected ‘::’
16 | return std::stoi(std::to_string(s[0] - '0') + std:to_string(s.size()) - '0');
| ^
| ::
uniquenumbers.cpp:16:75: error: no match for ‘operator-’ (operand types are ‘std::__cxx11::basic_string<char>’ and ‘char’)
16 | return std::stoi(std::to_string(s[0] - '0') + std:to_string(s.size()) - '0');
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~
| | |
| | char
| std::__cxx11::basic_string<char>
In file included from /usr/include/c++/9/bits/