Main.cc: In function 'int main()':
Main.cc:8:2: error: 'in' was not declared in this scope
in i = 0;
^
Main.cc:10:10: error: 'i' was not declared in this scope
while(a[i]!='\0'){
^
Main.cc:13:10: error: 'i' was not declared in this scope
while(a[i]!='\0'){
^
Main.cc:5:6: warning: unused variable 'max' [-Wunused-variable]
int max,cnt=0;
^