Problem | lis |
---|---|
User | PanGD |
Submission Time | 2023-01-04 22:36:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis.cpp:7:13: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
7 | int arr[1e6 + 5];
| ~~~~^~~
lis.cpp:7:13: error: could not convert ‘(1.0e+6 + (double)5)’ from ‘double’ to ‘long unsigned int’
lis.cpp:7:13: error: size of array ‘arr’ has non-integral type ‘double’
lis.cpp:8:16: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
8 | int lister[1e6 + 5];
| ~~~~^~~
lis.cpp:8:16: error: could not convert ‘(1.0e+6 + (double)5)’ from ‘double’ to ‘long unsigned int’
lis.cpp:8:16: error: size of array ‘lister’ has non-integral type ‘double’