Main.cc: In function 'int main()':
Main.cc:6:17: warning: left operand of comma operator has no effect [-Wunused-value]
for(int x=k+1;x<=2*k,x++){
^
Main.cc:6:26: error: expected ';' before ')' token
for(int x=k+1;x<=2*k,x++){
^
Main.cc:4:6: warning: unused variable 'x' [-Wunused-variable]
int x,y,k;
^
Main.cc:5:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^