/ OPS /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:2: error: expected ',' or ';' before 'double'
    6 |  double X1,Y1,X2,Y2;
      |  ^~~~~~
/in/foo.cc:7:13: error: 'X1' was not declared in this scope; did you mean 'y1'?
    7 |  while(cin>>X1>>Y1>>X2>>Y2){
      |             ^~
      |             y1
/in/foo.cc:7:17: error: 'Y1' was not declared in this scope; did you mean 'y1'?
    7 |  while(cin>>X1>>Y1>>X2>>Y2){
      |                 ^~
      |                 y1
/in/foo.cc:7:21: error: 'X2' was not declared in this scope
    7 |  while(cin>>X1>>Y1>>X2>>Y2){
      |                     ^~
/in/foo.cc:7:25: error: 'Y2' was not declared in this scope
    7 |  while(cin>>X1>>Y1>>X2>>Y2){
      |                         ^~
/in/foo.cc:12:8: error: expected ';' before '}' token
   12 |   set++
      |        ^
      |        ;
   13 |  }sort(a,a+set);
      |  ~      

信息

递交者
类型
递交
题目
P1053 计算矩形面积
语言
C++
递交时间
2024-05-24 14:50:52
评测时间
2024-05-24 14:50:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes