foo.c: In function 'main':
foo.c:12:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(k=z;k<=a*b;k++);
^~~
foo.c:13:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
if(k%a==0&&k%b==0)
^~
foo.c:15:3: error: break statement not within loop or switch
break;
^~~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务