Compile Error
foo.cc:3:10: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
3 | int p[1e5+5];
| ~~~^~
foo.cc:3:10: error: could not convert ‘(1.0e+5 + (double)5)’ from ‘double’ to ‘long unsigned int’
3 | int p[1e5+5];
| ~~~^~
| |
| double
foo.cc:3:10: error: size of array ‘p’ has non-integral type ‘double’
信息
- 递交者
- 类型
- 递交
- 题目
- P3020 货仓选址
- 语言
- C++
- 递交时间
- 2026-02-14 13:42:09
- 评测时间
- 2026-02-14 13:42:09
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes