foo.cc: In member function 'bool sqr::to(node&, node&, int)':
foo.cc:70:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'bool dir(node&, node&, int&)':
foo.cc:34:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
foo.cc: In function 'int main()':
foo.cc:98:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
foo.cc:100:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&u,&v),st=node(u,v);
^
foo.cc:101:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&u,&v),ed=node(u,v);
^
foo.cc:104:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
q[i]=sqr(x1,y1,x2,y2);
^
自豪的采用 HydroJudger 进行评测(github.com/hydro-dev/HydroJudger)
{"receive":"2020-04-02T11:46:06.124Z","handle":"2020-04-02T11:46:06.124Z","cache_start":"2020-04-02T11:46:06.130Z","read_cases":"2020-04-02T11:46:06.288Z","judge":"2020-04-02T11:46:06.289Z","done":"2020-04-02T11:46:08.474Z"}