blocks.cpp:27:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
27 | main(){
| ^
blocks.cpp: In function 'int main()':
blocks.cpp:15:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ^~~~~~~ ~~~~~~~~
| |
| long long int*
16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 | #define all(s) s.begin(),s.end()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 | #define allr(s) s.rbegin(),s.rend()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 | #define pb push_back
| ~~~~~~~~~~~~~~~~~~~~
20 | #define sz(v) (int)v.size()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 | #define umax(a,b) a = max(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 | #define umin(a,b) a = min(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 | #define endi puts("");
| ~~~~~~~~~~~~~~~~~~~~~~
24 | #define eps 1e-12
| ~~~~~~~~~~~~~~~~~
25 | const int N = 1e5+12,INF=1e9+7;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 | int dp[N][101],q[N];
| ~~~~~~~~~~~~~~~~~~~~
27 | main(){
| ~~~~~~~
28 | int n,k,i,j;
| ~~~~~~~~~~~~
29 | scan2(n,k)
| ~~~~~~~
blocks.cpp:29:5: note: in expansion of macro 'scan2'
29 | scan2(n,k)
| ^~~~~
blocks.cpp:15:28: note: format string is defined here
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~^
| |
| int*
| %lld
blocks.cpp:15:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ^~~~~~~ ~~~~
| |
| long long int*
16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 | #define all(s) s.begin(),s.end()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 | #define allr(s) s.rbegin(),s.rend()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 | #define pb push_back
| ~~~~~~~~~~~~~~~~~~~~
20 | #define sz(v) (int)v.size()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 | #define umax(a,b) a = max(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 | #define umin(a,b) a = min(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 | #define endi puts("");
| ~~~~~~~~~~~~~~~~~~~~~~
24 | #define eps 1e-12
| ~~~~~~~~~~~~~~~~~
25 | const int N = 1e5+12,INF=1e9+7;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 | int dp[N][101],q[N];
| ~~~~~~~~~~~~~~~~~~~~
27 | main(){
| ~~~~~~~
28 | int n,k,i,j;
| ~~~~~~~~~~~~
29 | scan2(n,k)
| ~~~~~~~~~
blocks.cpp:29:5: note: in expansion of macro 'scan2'
29 | scan2(n,k)
| ^~~~~
blocks.cpp:15:31: note: format string is defined here
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~^
| |
| int*
| %lld
blocks.cpp:14:24: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
14 | #define scan1(a) scanf("%d",&a);
| ^~~~ ~~~~
| |
| long long int*
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16 | #define scan3(a,b,c) scanf("%d %d %d",&a,&b,&c);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17 | #define all(s) s.begin(),s.end()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 | #define allr(s) s.rbegin(),s.rend()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19 | #define pb push_back
| ~~~~~~~~~~~~~~~~~~~~
20 | #define sz(v) (int)v.size()
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
21 | #define umax(a,b) a = max(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 | #define umin(a,b) a = min(a,b);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23 | #define endi puts("");
| ~~~~~~~~~~~~~~~~~~~~~~
24 | #define eps 1e-12
| ~~~~~~~~~~~~~~~~~
25 | const int N = 1e5+12,INF=1e9+7;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
26 | int dp[N][101],q[N];
| ~~~~~~~~~~~~~~~~~~~~
27 | main(){
| ~~~~~~~
28 | int n,k,i,j;
| ~~~~~~~~~~~~
29 | scan2(n,k)
| ~~~~~~~~~~
30 | for (i=1;i<=n;++i)
| ~~~~~~~~~~~~~~~~~~
31 | scan1(q[i])
| ~~~~~~~~~~
blocks.cpp:31:9: note: in expansion of macro 'scan1'
31 | scan1(q[i])
| ^~~~~
blocks.cpp:14:26: note: format string is defined here
14 | #define scan1(a) scanf("%d",&a);
| ~^
| |
| int*
| %lld
blocks.cpp:15:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | #define scan2(a,b) scanf("%d %d",&a, &b);
| ~~~~~^~~~~~~~~~~~~~~~
blocks.cpp:29:5: note: in expansion of macro 'scan2'
29 | scan2(n,k)
| ^~~~~
blocks.cpp:14:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | #define scan1(a) scanf("%d",&a);
| ~~~~~^~~~~~~~~
blocks.cpp:31:9: note: in expansion of macro 'scan1'
31 | scan1(q[i])
| ^~~~~