fangorn.cpp: In function 'void solve(int)':
fangorn.cpp:48:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<tec.size()||j<c) {
^
fangorn.cpp:49: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:74: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:74:57: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
fangorn.cpp:77: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:77:57: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
fangorn.cpp:92: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:93:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<res.size();i++) printf("%d ",res[i]);
^
fangorn.cpp:71: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:72: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:73:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
^
fangorn.cpp:74: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:76:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
fangorn.cpp:77: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);
^