stamps.cpp: In function 'int main()':
stamps.cpp:10:28: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%ld %ld", &n, &t);
^
stamps.cpp:10:28: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
stamps.cpp:11:103: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
for (long long i = 1; i <= n; i++) scanf("%ld %ld %ld %ld", &u[i][0], &u[i][1], &d[i][0], &d[i][1]);
^
stamps.cpp:11:103: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=]
stamps.cpp:11:103: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'long long int*' [-Wformat=]
stamps.cpp:11:103: warning: format '%ld' expects argument of type 'long int*', but argument 5 has type 'long long int*' [-Wformat=]
stamps.cpp:37:35: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
printf("%ld", dp[n][1]+(n+1)*t);
^
stamps.cpp:10:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld", &n, &t);
^
stamps.cpp:11:104: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (long long i = 1; i <= n; i++) scanf("%ld %ld %ld %ld", &u[i][0], &u[i][1], &d[i][0], &d[i][1]);
^