/ Vijos /

记录详情

Compile Error

foo.cc:3:17: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:58:14: note: in expansion of macro 'MAXN'
   58 |   stone data[MAXN];
      |              ^~~~
foo.cc:3:17: error: could not convert '(2.0e+7 + (double)5)' from 'double' to 'long unsigned int'
    3 | #define MAXN 2e7+5
      |              ~~~^~
      |                 |
      |                 double
foo.cc:58:14: note: in expansion of macro 'MAXN'
   58 |   stone data[MAXN];
      |              ^~~~
foo.cc:3:17: error: size of array 'data' has non-integral type 'double'
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:58:14: note: in expansion of macro 'MAXN'
   58 |   stone data[MAXN];
      |              ^~~~
foo.cc:3:17: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:59:13: note: in expansion of macro 'MAXN'
   59 |   int range[MAXN][2];
      |             ^~~~
foo.cc:3:17: error: could not convert '(2.0e+7 + (double)5)' from 'double' to 'long unsigned int'
    3 | #define MAXN 2e7+5
      |              ~~~^~
      |                 |
      |                 double
foo.cc:59:13: note: in expansion of macro 'MAXN'
   59 |   int range[MAXN][2];
      |             ^~~~
foo.cc:3:17: error: size of array 'range' has non-integral type 'double'
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:59:13: note: in expansion of macro 'MAXN'
   59 |   int range[MAXN][2];
      |             ^~~~
foo.cc:3:17: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:60:18: note: in expansion of macro 'MAXN'
   60 |   long long sumW[MAXN];
      |                  ^~~~
foo.cc:3:17: error: could not convert '(2.0e+7 + (double)5)' from 'double' to 'long unsigned int'
    3 | #define MAXN 2e7+5
      |              ~~~^~
      |                 |
      |                 double
foo.cc:60:18: note: in expansion of macro 'MAXN'
   60 |   long long sumW[MAXN];
      |                  ^~~~
foo.cc:3:17: error: size of array 'sumW' has non-integral type 'double'
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:60:18: note: in expansion of macro 'MAXN'
   60 |   long long sumW[MAXN];
      |                  ^~~~
foo.cc:3:17: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:61:18: note: in expansion of macro 'MAXN'
   61 |   long long sumV[MAXN];
      |                  ^~~~
foo.cc:3:17: error: could not convert '(2.0e+7 + (double)5)' from 'double' to 'long unsigned int'
    3 | #define MAXN 2e7+5
      |              ~~~^~
      |                 |
      |                 double
foo.cc:61:18: note: in expansion of macro 'MAXN'
   61 |   long long sumV[MAXN];
      |                  ^~~~
foo.cc:3:17: error: size of array 'sumV' has non-integral type 'double'
    3 | #define MAXN 2e7+5
      |              ~~~^~
foo.cc:61:18: note: in expansion of macro 'MAXN'
   61 |   long long sumV[MAXN];
      |                  ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2022-08-10 16:07:38
评测时间
2022-08-10 16:07:38
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes