记录详情

Compile Error

foo.c: In function 'main':
foo.c:16:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
      if(flag1==2)
      ^~
foo.c:18:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
       flag1=0;
       ^~~~~
foo.c:21:3: error: expected '}' before 'else'
   else if(N=2)
   ^~~~
foo.c:21:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
   else if(N=2)
           ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&n,&N);
  ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

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