0_0_32687318_18488.cpp:8:1: error: missing terminating " character if(i)printf("\n'); ^ 0_0_32687318_18488.cpp: In function 'int main()': 0_0_32687318_18488.cpp:6:3: error: expected ',' or ';' before 'while' while(~scanf("%d",&n)) ^