Main.cc: In function 'int main()':
Main.cc:5:1: error: expected ',' or ';' before 'int'
int cnt[1000000];
^
Main.cc:9:5: error: 'cnt' was not declared in this scope
cnt[tmp]++;
^
Main.cc:16:7: error: 'cnt' was not declared in this scope
while(cnt[i]==0)i++;
^
Main.cc:19:8: error: 'cnt' was not declared in this scope
if(cnt[i]>0){
^