Problem pushups
User hwy
Submission Time 2023-06-05 14:04:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘int main()’:
pushups.cpp:5:17: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
5 | int lst[1e6 + 2];
| ~~~~^~~
pushups.cpp:5:17: error: could not convert ‘(1.0e+6 + (double)2)’ from ‘double’ to ‘long unsigned int’
pushups.cpp:5:17: error: size of array ‘lst’ has non-integral type ‘double’
pushups.cpp:7:14: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
7 | int A[1e6+2];
| ~~~^~
pushups.cpp:7:14: error: could not convert ‘(1.0e+6 + (double)2)’ from ‘double’ to ‘long unsigned int’
pushups.cpp:7:14: error: size of array ‘A’ has non-integral type ‘double’