QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#49857#1968. Science FictionZhangYiDeCompile Error//C++171.1kb2022-09-23 17:08:502022-09-23 17:08:51

详细

answer.code: In function ‘int main()’:
answer.code:23:14: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
   23 |     int a[1e6+5], b[1e6+5];
      |           ~~~^~
answer.code:23:14: error: could not convert ‘(1.0e+6 + (double)5)’ from ‘double’ to ‘long unsigned int’
answer.code:23:14: error: size of array ‘a’ has non-integral type ‘double’
answer.code:23:24: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
   23 |     int a[1e6+5], b[1e6+5];
      |                     ~~~^~
answer.code:23:24: error: could not convert ‘(1.0e+6 + (double)5)’ from ‘double’ to ‘long unsigned int’
answer.code:23:24: error: size of array ‘b’ has non-integral type ‘double’