happiness.cpp: In member function 'void bucket::insert(ll)':
happiness.cpp:21:6: warning: unused variable 'i' [-Wunused-variable]
ll i, s = 0;
^
happiness.cpp: In function 'void refresh()':
happiness.cpp:86:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<V.size(); i++){
~^~~~~~~~~
happiness.cpp: In function 'bool is_happy(int, int, ll*)':
happiness.cpp:56:11: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
swap(V[x], V.back()); V.pop_back();
^
happiness.cpp:40:12: note: 'x' was declared here
ll i, f, x;
^
grader.cpp: In function 'int main()':
grader.cpp:14:9: warning: unused variable 'd' [-Wunused-variable]
int i, d;
^
grader.cpp:15:12: warning: unused variable 'max_code' [-Wunused-variable]
long long max_code;
^~~~~~~~
grader.cpp:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lld", &N, &M);
~~~~~^~~~~~~~~~~~~~~~~~
grader.cpp:19:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &coins[i]);
~~~~~^~~~~~~~~~~~~~~~~~~
grader.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &Q);
~~~~~^~~~~~~~~~
grader.cpp:26:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &ck, &c);
~~~~~^~~~~~~~~~~~~~~~~
grader.cpp:28:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &A[j]);
~~~~~^~~~~~~~~~~~~~~