fangorn.cpp: In function 'int wh(pll)':
fangorn.cpp:22:22: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if (a.x>0||a.x==0&&a.y>0) return 0;
^
fangorn.cpp: In function 'void solve(int)':
fangorn.cpp:53:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<tec.size()||j<=c) {
^
fangorn.cpp:54:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i==tec.size()) lab[ord[j++]][idx] = i%(n-1);
^
fangorn.cpp: In function 'int main()':
fangorn.cpp:67:57: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for (i=0;i<c;i++) scanf("%d%d",&camp[i].x,&camp[i].y);
^
fangorn.cpp:67:57: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
fangorn.cpp:69:57: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for (i=0;i<n;i++) scanf("%d%d",&tree[i].x,&tree[i].y);
^
fangorn.cpp:69:57: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
fangorn.cpp:78:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",res.size());
^
fangorn.cpp:79:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<res.size();i++) printf("%d ",res[i]);
^
fangorn.cpp:64:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&w,&h);
^
fangorn.cpp:65:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld\n",&st.x,&st.y);
^
fangorn.cpp:66:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
^
fangorn.cpp:67:58: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i=0;i<c;i++) scanf("%d%d",&camp[i].x,&camp[i].y);
^
fangorn.cpp:68:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
fangorn.cpp:69:58: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i=0;i<n;i++) scanf("%d%d",&tree[i].x,&tree[i].y);
^