QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#49857#1968. Science FictionZhangYiDeCompile Error//C++171.1kb2022-09-23 17:08:502022-09-23 17:08:51

Details

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’