记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:6:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
    6 |         scanf ("%d %d",x,y);
      |                 ~^     ~
      |                  |     |
      |                  int*  int
foo.cc:6:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
    6 |         scanf ("%d %d",x,y);
      |                    ~^    ~
      |                     |    |
      |                     int* int
foo.cc:8:16: error: 'Y' was not declared in this scope
    8 |         if(x>0,Y>0)
      |                ^
foo.cc:11:14: error: lvalue required as left operand of assignment
   11 |         if (x*y=0)
      |             ~^~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1003 平面坐标系
语言
C++
递交时间
2023-09-14 22:24:17
评测时间
2023-09-14 22:24:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes