Problem sixandseven
User yq
Submission Time 2026-06-26 15:19:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sixandseven.cpp: In function ‘int main()’:
sixandseven.cpp:7:6: error: ‘i’ was not declared in this scope
7 | for(i=0; i<n; i++){
| ^
sixandseven.cpp:9:15: error: expected ‘;’ before ‘}’ token
9 | cout<<"YES"}
| ^
| ;
sixandseven.cpp:10:18: error: expected ‘;’ before ‘}’ token
10 | else cout<<"NO" }
| ^~
| ;
sixandseven.cpp:11:7: error: no match for ‘operator<=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘int’)
11 | if(n <= 9){
| ~ ^~ ~
| | |
| | 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/bits/stdc++.h:110,
from sixandseven.cpp:1:
/usr/include/c++/9/bits/rege