Problem sumint
User ys
Submission Time 2025-03-15 19:52:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:18:13: error: ‘s’ was not declared in this scope
18 | meows = s.substr(meows[1]);
| ^
sumint.cpp:22:22: error: ‘s’ was not declared in this scope
22 | sum += std::stoi(s.subtr(meows[0:i]));
| ^
sumint.cpp:22:37: error: expected ‘]’ before ‘:’ token
22 | sum += std::stoi(s.subtr(meows[0:i]));
| ^
| ]
sumint.cpp:22:37: error: expected ‘)’ before ‘:’ token
22 | sum += std::stoi(s.subtr(meows[0:i]));
| ~ ^
| )