0 Compile Error
foo.cc:5:8: error: conversion from 'double' to 'long unsigned int' in a converted constant expression 5 | int xl[1e6]; | ^~~ foo.cc:5:8: error: could not convert '1.0e+6' from 'double' to 'long unsigned int' 5 | int xl[1e6]; | ^~~ | | | double foo.cc:5:8: error: size of array 'xl' has non-integral type 'double' foo.cc:10:5: error: conversion from 'double' to 'long unsigned int' in a converted constant expression 10 | }rw[1e6]; | ^~~ foo.cc:10:5: error: could not convert '1.0e+6' from 'double' to 'long unsigned int' 10 | }rw[1e6]; | ^~~ | | | double foo.cc:10:5: error: size of array 'rw' has non-integral type 'double'
代码
信息
- 递交者
- 题目
- CSPJ2024GFD 接龙
- 比赛
- 【官方数据】CSP-J 2024 NM 批量测试
- 语言
- C++ 14(O2)
- 代码长度
- 533 Bytes
- 递交时间
- 2024-11-5 13:27:21
- 评测时间
- 2024-11-5 13:27:22
- 分数
- 0