Compile Error

foo.cc:3:7: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
    3 | int p[1e6];
      |       ^~~
foo.cc:3:7: error: could not convert ‘1.0e+6’ from ‘double’ to ‘long unsigned int’
    3 | int p[1e6];
      |       ^~~
      |       |
      |       double
foo.cc:3:7: error: size of array ‘p’ has non-integral type ‘double’

信息

递交者
类型
递交
题目
P3020 货仓选址
语言
C++
递交时间
2026-02-14 13:43:02
评测时间
2026-02-14 13:43:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes