company.cpp: In function ‘int solve(int)’:
company.cpp:11:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<graph[x].size(); i++) {
^
company.cpp:14:31: error: ‘sort’ was not declared in this scope
sort(ret.begin(),ret.end());
^
company.cpp:15:34: error: ‘reverse’ was not declared in this scope
reverse(ret.begin(),ret.end());
^
company.cpp:17:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<lim && i < ret.size(); i++) {
^
company.cpp: In function ‘int main()’:
company.cpp:29:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
company.cpp:32:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^