bottle.cpp: In function ‘void make_tree()’:
bottle.cpp:80:37: error: ‘sort’ was not declared in this scope
sort(cand.begin(),cand.end(),cmp);
^
bottle.cpp:81:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<cand.size(); i++) {
^
bottle.cpp: In function ‘int main()’:
bottle.cpp:99:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j=0; j<tree.size(); j++) {
^
bottle.cpp: In function ‘void make_tree()’:
bottle.cpp:44:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&px,&py);
^
bottle.cpp: In function ‘int main()’:
bottle.cpp:89:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d",&n,&m,&p,&q);
^
bottle.cpp:91:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",str[i]);
^
bottle.cpp:98:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&s,&e);
^