F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 06:44:37, Gzip enabled