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_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];
      |        ^~~~


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:32:33, Gzip enabled