koala.cpp: In member function 'void ModHull::update(ll, ll)':
koala.cpp:34:30: warning: narrowing conversion of '((long double)c - ((long double)a * std::ceil(((-(long double)x) / (long double)d))))' from 'long double' to 'll {aka long long int}' inside { } [-Wnarrowing]
update((Seg){0, x % d, c - a * ceil((long double)-1.0 * x / d)});
^
koala.cpp:36:20: warning: narrowing conversion of '((long double)c - ((long double)a * std::ceil(((long double)(d + -1ll - x) / (long double)d))))' from 'long double' to 'll {aka long long int}' inside { } [-Wnarrowing]
c - a * ceil((long double)1.0 * (d - 1 - x) / d)});
^
koala.cpp: In function 'int main()':
koala.cpp:46:45: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
scanf("%d %d %d %d %d", &k, &m, &d, &a, &n);
^
koala.cpp:46:45: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=]
koala.cpp:46:45: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'll* {aka long long int*}' [-Wformat=]
koala.cpp:46:45: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'll* {aka long long int*}' [-Wformat=]
koala.cpp:46:45: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'll* {aka long long int*}' [-Wformat=]
koala.cpp:49:58: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
for(int i = 1; i <= n; i++) scanf("%d %d", t + i, b + i);
^
koala.cpp:49:58: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll* {aka long long int*}' [-Wformat=]
koala.cpp:46:46: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d %d", &k, &m, &d, &a, &n);
^
koala.cpp:49:59: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(int i = 1; i <= n; i++) scanf("%d %d", t + i, b + i);
^