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_39824575_11197.cpp:4:13: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
    4 | #define MAX 5e6
      |             ^~~
0_0_39824575_11197.cpp:6:9: note: in expansion of macro 'MAX'
    6 | int pre[MAX];
      |         ^~~
0_0_39824575_11197.cpp:4:13: error: could not convert '5.0e+6' from 'double' to 'long long unsigned int'
    4 | #define MAX 5e6
      |             ^~~
      |             |
      |             double
0_0_39824575_11197.cpp:6:9: note: in expansion of macro 'MAX'
    6 | int pre[MAX];
      |         ^~~
0_0_39824575_11197.cpp:4:13: error: size of array 'pre' has non-integral type 'double'
    4 | #define MAX 5e6
      |             ^~~
0_0_39824575_11197.cpp:6:9: note: in expansion of macro 'MAX'
    6 | int pre[MAX];
      |         ^~~
0_0_39824575_11197.cpp:4:13: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
    4 | #define MAX 5e6
      |             ^~~
0_0_39824575_11197.cpp:15:13: note: in expansion of macro 'MAX'
   15 | int union_n[MAX];
      |             ^~~
0_0_39824575_11197.cpp:4:13: error: could not convert '5.0e+6' from 'double' to 'long long unsigned int'
    4 | #define MAX 5e6
      |             ^~~
      |             |
      |             double
0_0_39824575_11197.cpp:15:13: note: in expansion of macro 'MAX'
   15 | int union_n[MAX];
      |             ^~~
0_0_39824575_11197.cpp:4:13: error: size of array 'union_n' has non-integral type 'double'
    4 | #define MAX 5e6
      |             ^~~
0_0_39824575_11197.cpp:15:13: note: in expansion of macro 'MAX'
   15 | int union_n[MAX];
      |             ^~~


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-26 17:55:18, Gzip enabled