foo.cc: In function ‘int main()’:
foo.cc:9:33: error: expected initializer before ‘==’ token
9 | int ok=1,num[10]=={0,0,0,0,0,0,0,0,0,0},it=i;
| ^~
foo.cc:9:56: error: expected primary-expression before ‘,’ token
9 | int ok=1,num[10]=={0,0,0,0,0,0,0,0,0,0},it=i;
| ^
foo.cc:9:57: error: ‘it’ was not declared in this scope; did you mean ‘i’?
9 | int ok=1,num[10]=={0,0,0,0,0,0,0,0,0,0},it=i;
| ^~
| i
foo.cc:12:25: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
12 | num[it%10]++;
| ^~~
| enum
foo.cc:21:14: error: expected primary-expression before ‘,’ token
21 | cout<,ans;
| ^