Main.cc: In function 'int main()': Main.cc:9:14: error: 'INT_MIN' was not declared in this scope int maxn=INT_MIN,pos=0; ^ Main.cc:16:13: error: 'pos' was not declared in this scope pos=i+1; ^ Main.cc:19:19: error: 'pos' was not declared in this scope printf("%d\n",pos); ^