记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
语言
C
递交时间
2021-09-02 22:23:05
评测时间
2021-09-02 22:23:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes