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

Compile Error

ihate1111.cpp: In function ‘int main()’:
ihate1111.cpp:25:2: error: expected ‘,’ or ‘;’ before ‘int’
25 | int nums[a];
| ^~~
ihate1111.cpp:28:10: error: ‘nums’ was not declared in this scope
28 | cin >> nums[i];
| ^~~~
ihate1111.cpp:32:7: error: ‘nums’ was not declared in this scope
32 | if (nums[i] == 0) {
| ^~~~
ihate1111.cpp:38:8: error: ‘nums’ was not declared in this scope
38 | if (nums[i] == 0) {
| ^~~~
ihate1111.cpp:43:20: error: ‘nums’ was not declared in this scope
43 | if (count_digit(nums[i]) <= 1) {
| ^~~~
ihate1111.cpp:48:4: error: ‘nums’ was not declared in this scope
48 | nums[i] -= ones[count_digit(nums[i]) - 1];
| ^~~~