0_0_39031798_25144.cpp:7:17: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
7 | #define maxn 1e6+2
| ~~~^~
0_0_39031798_25144.cpp:9:7: note: in expansion of macro 'maxn'
9 | ll dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031798_25144.cpp:7:17: error: could not convert '(1.0e+6 + (double)2)' from 'double' to 'long long unsigned int'
7 | #define maxn 1e6+2
| ~~~^~
| |
| double
0_0_39031798_25144.cpp:9:7: note: in expansion of macro 'maxn'
9 | ll dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031798_25144.cpp:7:17: error: size of array 'dp' has non-integral type 'double'
7 | #define maxn 1e6+2
| ~~~^~
0_0_39031798_25144.cpp:9:7: note: in expansion of macro 'maxn'
9 | ll dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031798_25144.cpp:7:17: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
7 | #define maxn 1e6+2
| ~~~^~
0_0_39031798_25144.cpp:10:8: note: in expansion of macro 'maxn'
10 | ll num[maxn];
| ^~~~
0_0_39031798_25144.cpp:7:17: error: could not convert '(1.0e+6 + (double)2)' from 'double' to 'long long unsigned int'
7 | #define maxn 1e6+2
| ~~~^~
| |
| double
0_0_39031798_25144.cpp:10:8: note: in expansion of macro 'maxn'
10 | ll num[maxn];
| ^~~~
0_0_39031798_25144.cpp:7:17: error: size of array 'num' has non-integral type 'double'
7 | #define maxn 1e6+2
| ~~~^~
0_0_39031798_25144.cpp:10:8: note: in expansion of macro 'maxn'
10 | ll num[maxn];
| ^~~~
|