0_0_39893122_138.cpp:3:41: error: conflicting declaration 'int ok [100]'
3 | int n,vis[1005][1005],ok,sum=0,ans[100],ok[100];
| ^~
0_0_39893122_138.cpp:3:23: note: previous declaration as 'int ok'
3 | int n,vis[1005][1005],ok,sum=0,ans[100],ok[100];
| ^~
0_0_39893122_138.cpp: In function 'int main()':
0_0_39893122_138.cpp:61:22: error: invalid types 'int[int]' for array subscript
61 | if(ok[n]!=0){
| ^
0_0_39893122_138.cpp:70:19: error: invalid types 'int[int]' for array subscript
70 | ok[n]=1;
| ^
|