Main.cc: In function 'int main()':
Main.cc:6:18: error: expected ')' before ';' token
while(int i=0; n[i]!='\0'; i++)
^
Main.cc:6:15: warning: unused variable 'i' [-Wunused-variable]
while(int i=0; n[i]!='\0'; i++)
^
Main.cc:6:22: error: 'i' was not declared in this scope
while(int i=0; n[i]!='\0'; i++)
^