coach.cpp: In function 'int solve(int)':
coach.cpp:13:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < v.size(); i++) {
~~^~~~~~~~~~
coach.cpp:18:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
coach.cpp: In function 'int main(int, const char**)':
coach.cpp:44:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < v.size(); i++) {
~~^~~~~~~~~~
coach.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %d %d %lld %lld", &X, &N, &M, &W, &T);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
coach.cpp:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &s[i]);
~~~~~^~~~~~~~~~~~~~~
coach.cpp:32:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &d[i], &c[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~