Main.cc: In function 'int main()':
Main.cc:14:26: warning: for increment expression has no effect [-Wunused-value]
for(int j=1;j++;j<=n;j++){
^
Main.cc:14:29: error: expected ')' before ';' token
for(int j=1;j++;j<=n;j++){
^
Main.cc:14:30: error: 'j' was not declared in this scope
for(int j=1;j++;j<=n;j++){
^