spa.cpp:6:16: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
6 | int marked[1e6 + 1];
| ~~~~^~~
spa.cpp:6:16: error: could not convert '(1.0e+6 + (double)1)' from 'double' to 'long unsigned int'
6 | int marked[1e6 + 1];
| ~~~~^~~
| |
| double
spa.cpp:6:16: error: size of array 'marked' has non-integral type 'double'
spa.cpp:7:13: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
7 | int val[1e6 + 1];
| ~~~~^~~
spa.cpp:7:13: error: could not convert '(1.0e+6 + (double)1)' from 'double' to 'long unsigned int'
7 | int val[1e6 + 1];
| ~~~~^~~
| |
| double
spa.cpp:7:13: error: size of array 'val' has non-integral type 'double'