Compile Error

foo.cc: In function ‘bool cmp(t, t)’:
foo.cc:13:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
   13 |         return a.x<b.x||a.x==b.x&&a.y<b.y;
      |                         ~~~~~~~~^~~~~~~~~
foo.cc: At global scope:
foo.cc:15:8: error: ISO C++ forbids declaration of ‘read’ with no type [-fpermissive]
   15 | inline read()
      |        ^~~~
foo.cc:29:8: error: ISO C++ forbids declaration of ‘write’ with no type [-fpermissive]
   29 | inline write(int x){
      |        ^~~~~
foo.cc: In function ‘int write(int)’:
foo.cc:36:1: warning: no return statement in function returning non-void [-Wreturn-type]
   36 | }
      | ^
foo.cc: In function ‘int main()’:
foo.cc:53:33: warning: unused variable ‘u’ [-Wunused-variable]
   53 |                         int k,l,u;k=read();l=read();
      |                                 ^

信息

递交者
类型
递交
题目
P2433 插入排序
语言
C++
递交时间
2025-07-19 13:30:03
评测时间
2025-07-19 13:30:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes