记录详情

Compile Error

foo.c: In function 'main':
foo.c:9:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    9 |         else if(x<0&&y>0);
      |              ^~
foo.c:10:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   10 |                 printf("2");
      |                 ^~~~~~
foo.c:11:9: error: 'else' without a previous 'if'
   11 |         else if(x<0&&y<0);
      |         ^~~~
foo.c:11:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   11 |         else if(x<0&&y<0);
      |              ^~
foo.c:12:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   12 |             printf("3");
      |             ^~~~~~
foo.c:13:9: error: 'else' without a previous 'if'
   13 |         else if(x>0&&y<0);
      |         ^~~~
foo.c:13:14: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   13 |         else if(x>0&&y<0);
      |              ^~
foo.c:14:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   14 |             printf("4");
      |             ^~~~~~
foo.c:15:9: error: 'else' without a previous 'if'
   15 |         else();
      |         ^~~~
foo.c:15:14: error: expected expression before ')' token
   15 |         else();
      |              ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1011 平面坐标系
语言
C
递交时间
2022-09-22 20:36:42
评测时间
2022-09-22 20:36:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes