Problem sixandseven
User mj2009
Submission Time 2026-06-26 13:52:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sixandseven.cpp: In function ‘int main()’:
sixandseven.cpp:6:13: error: expected initializer before ‘>>’ token
6 | string cin >> N;
| ^~
sixandseven.cpp:7:18: error: ‘a’ was not declared in this scope
7 | for(int i=0 ; i<a(N);i++){
| ^
sixandseven.cpp:8:5: error: expected ‘(’ before ‘[’ token
8 | if[i == "6" && i+1 == "7"){
| ^
| (
sixandseven.cpp:11:3: error: ‘else’ without a previous ‘if’
11 | else{
| ^~~~
sixandseven.cpp:12:16: error: expected initializer before ‘<<’ token
12 | string cout << "NO";
| ^~
sixandseven.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
sixandseven.cpp:4:15: note: to match this ‘{’
4 | signed main() {
| ^