nicegift.cpp: In function 'int main()':
nicegift.cpp:66:2: error: 'assert' was not declared in this scope
66 | assert(0);
| ^~~~~~
nicegift.cpp:5:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
4 | #include <set>
+++ |+#include <cassert>
5 |
nicegift.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
18 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
nicegift.cpp:20:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
20 | scanf("%lld", a+i);
| ~~~~~^~~~~~~~~~~~~