Problem eight
User anonymous1801
Submission Time 2026-04-18 09:20:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp: In function ‘int main()’:
eight.cpp:9:17: error: expected ‘;’ before ‘<’ token
9 | for (int i=0, i<n, i++){
| ^
| ;
eight.cpp:9:17: error: expected primary-expression before ‘<’ token
eight.cpp:9:24: error: expected ‘;’ before ‘)’ token
9 | for (int i=0, i<n, i++){
| ^
| ;
eight.cpp:11:14: error: could not convert ‘arr[i].std::__cxx11::basic_string<char>::operator=(8)’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
11 | if (arr[i] = 8){
| ~~~~~~~^~~
| |
| std::__cxx11::basic_string<char>
eight.cpp:15:11: error: expected ‘;’ before ‘}’ token
15 | cout<<ans
| ^
| ;
16 | }
| ~