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