记录详情

Compile Error

foo.c: In function 'main':
foo.c:9:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(i%j!=0)
    ^~
foo.c:11:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
     printf("%d"n);
     ^~~~~~
foo.c:11:16: error: expected ')' before 'n'
     printf("%d"n);
                ^
foo.c:11:14: warning: format '%d' expects a matching 'int' argument [-Wformat=]
     printf("%d"n);
             ~^
foo.c:5:13: warning: unused variable 't' [-Wunused-variable]
     int i,j,t=0,n;
             ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
中北 计算机2021级专业修读指导(1)
语言
C
递交时间
2021-11-30 19:18:25
评测时间
2021-11-30 19:18:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes