Problem ihate1111
User altaf
Submission Time 2025-02-07 08:00:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ihate1111.cpp: In function ‘int main()’:
ihate1111.cpp:23:17: error: expected identifier before numeric constant
23 | int ones[9] = [11, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111, 1111111111]
| ^~
ihate1111.cpp:23:19: error: expected ‘]’ before ‘,’ token
23 | int ones[9] = [11, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111, 1111111111]
| ^
| ]
ihate1111.cpp: In lambda function:
ihate1111.cpp:23:19: error: expected ‘{’ before ‘,’ token
ihate1111.cpp: In function ‘int main()’:
ihate1111.cpp:23:19: error: array must be initialized with a brace-enclosed initializer
ihate1111.cpp:23:21: error: expected unqualified-id before numeric constant
23 | int ones[9] = [11, 111, 1111, 11111, 111111, 1111111, 11111111, 111111111, 1111111111]
| ^~~
ihate1111.cpp:28:10: error: ‘nums’ was not declared in this scope
28 | cin