Main.cc: In function 'int main()':
Main.cc:20:23: error: expected ';' before ')' token
for(int k=1;k<=2*i-1);k++){
^
Main.cc:20:25: error: 'k' was not declared in this scope
for(int k=1;k<=2*i-1);k++){
^