/ TYWZ /

记录详情

Compile Error

/in/foo.cc: In function 'int ping(int)':
/in/foo.cc:14:16: error: request for member 'x' in 'x', which is of non-class type 'int'
   int u=sqrt(x.x);
                ^
/in/foo.cc:15:13: error: request for member 'x' in 'x', which is of non-class type 'int'
   if(u*u==x.x)
             ^
/in/foo.cc:17:10: error: request for member 'x' in 'x', which is of non-class type 'int'
   b[z]=x.x;
          ^
/in/foo.cc:20:15: error: request for member 'x' in 'x', which is of non-class type 'int'
   else c[m]=x.x,m++;
               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:13: error: cannot convert 'Point' to 'int' for argument '1' to 'int ping(int)'
    ping(a[i]);
             ^
/in/foo.cc: In function 'bool comp(Point, Point)':
/in/foo.cc:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
Basic STL II
语言
C++
递交时间
2019-01-24 22:57:54
评测时间
2019-01-24 22:57:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes