0_0_39031794_27800.cpp:3:17: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
3 | #define maxn 1e6+2
| ~~~^~
0_0_39031794_27800.cpp:5:14: note: in expansion of macro 'maxn'
5 | long long dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031794_27800.cpp:3:17: error: could not convert '(1.0e+6 + (double)2)' from 'double' to 'long long unsigned int'
3 | #define maxn 1e6+2
| ~~~^~
| |
| double
0_0_39031794_27800.cpp:5:14: note: in expansion of macro 'maxn'
5 | long long dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031794_27800.cpp:3:17: error: size of array 'dp' has non-integral type 'double'
3 | #define maxn 1e6+2
| ~~~^~
0_0_39031794_27800.cpp:5:14: note: in expansion of macro 'maxn'
5 | long long dp[maxn][2]; //dp:保存当前状态和上一次状态的最大值
| ^~~~
0_0_39031794_27800.cpp:3:17: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
3 | #define maxn 1e6+2
| ~~~^~
0_0_39031794_27800.cpp:6:15: note: in expansion of macro 'maxn'
6 | long long num[maxn];
| ^~~~
0_0_39031794_27800.cpp:3:17: error: could not convert '(1.0e+6 + (double)2)' from 'double' to 'long long unsigned int'
3 | #define maxn 1e6+2
| ~~~^~
| |
| double
0_0_39031794_27800.cpp:6:15: note: in expansion of macro 'maxn'
6 | long long num[maxn];
| ^~~~
0_0_39031794_27800.cpp:3:17: error: size of array 'num' has non-integral type 'double'
3 | #define maxn 1e6+2
| ~~~^~
0_0_39031794_27800.cpp:6:15: note: in expansion of macro 'maxn'
6 | long long num[maxn];
| ^~~~
0_0_39031794_27800.cpp: In function 'int main()':
0_0_39031794_27800.cpp:18:9: error: 'll' was not declared in this scope
18 | ll _max,ans;
| ^~
0_0_39031794_27800.cpp:20:13: error: '_max' was not declared in this scope; did you mean 'fmax'?
20 | _max=-inf;
| ^~~~
| fmax
0_0_39031794_27800.cpp:21:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
21 | ans=-inf;
| ^~~
| abs
0_0_39031794_27800.cpp:29:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
29 | printf("%lld\n",ans);
| ^~~
| abs
|