Main.cc: In function 'int main()':
Main.cc:33:1: error: expected ',' or ';' before 'int'
int cnt[1001]={};
^
Main.cc:37:5: error: 'cnt' was not declared in this scope
cnt[tmp]++;
^
Main.cc:44:7: error: 'cnt' was not declared in this scope
while(cnt[i]==0)i++;
^
Main.cc:47:8: error: 'cnt' was not declared in this scope
if(cnt[i]>0){
^
Main.cc:53:2: error: expected '}' at end of input
}
^