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_39972963_9527.cpp:3:16: error: conversion from 'double' to 'long long unsigned int' in a converted constant expression
    3 | #define MAX 1e6+7
      |             ~~~^~
0_0_39972963_9527.cpp:4:12: note: in expansion of macro 'MAX'
    4 | int sum, f[MAX];
      |            ^~~
0_0_39972963_9527.cpp:3:16: error: could not convert '(1.0e+6 + (double)7)' from 'double' to 'long long unsigned int'
    3 | #define MAX 1e6+7
      |             ~~~^~
      |                |
      |                double
0_0_39972963_9527.cpp:4:12: note: in expansion of macro 'MAX'
    4 | int sum, f[MAX];
      |            ^~~
0_0_39972963_9527.cpp:3:16: error: size of array 'f' has non-integral type 'double'
    3 | #define MAX 1e6+7
      |             ~~~^~
0_0_39972963_9527.cpp:4:12: note: in expansion of macro 'MAX'
    4 | int sum, f[MAX];
      |            ^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-04-18 08:38:59, Gzip enabled