| Problem | sixandseven |
|---|---|
| User | MangoMatrix |
| Submission Time | 2026-06-26 16:59:29 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sixandseven.cpp: In function ‘int main()’:
sixandseven.cpp:6:11: error: expected initializer before ‘==’ token
6 | int i == s - 1;
| ^~
sixandseven.cpp:8:11: error: ‘i’ was not declared in this scope
8 | if (s[i] == '6' && s[i+1] == '7') {
| ^
sixandseven.cpp:9:19: error: expected ‘;’ before ‘+’ token
9 | for (int i + 1 == s; i < s.size(); i++){}
| ^~
| ;
sixandseven.cpp:9:24: error: no match for ‘operator==’ (operand types are ‘int’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’})
9 | for (int i + 1 == s; i < s.size(); i++){}
| ~~~ ^~ ~
| | |
| int std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/b