Main.cc: In function ‘int main()’: Main.cc:16:16: warning: left operand of comma operator has no effect [-Wunused-value] for(int c=0;c<=n-1,c++,p++){ ~^~~~~ Main.cc:16:29: error: expected ‘;’ before ‘)’ token for(int c=0;c<=n-1,c++,p++){ ^ Main.cc:25:5: error: ‘pritnf’ was not declared in this scope pritnf("\n"); ^~~~~~ Main.cc:25:5: note: suggested alternative: ‘printf’ pritnf("\n"); ^~~~~~ printf