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();
| ^