autobahn.cpp: In function 'int main()':
autobahn.cpp:51:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(int i=1, j=0; i<prefixhappy.size(); i++){
| ~^~~~~~~~~~~~~~~~~~~
autobahn.cpp:52:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
52 | while(j+1<prefixhappy.size() and events[j-1].time+x<events[i-1].time)
| ~~~^~~~~~~~~~~~~~~~~~~
autobahn.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | scanf("%d%d%d", &n, &k, &x);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
autobahn.cpp:22:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d%d%d", &i.l, &i.t, &i.r), i.l--;
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~