Problem candies
User eulerleonhardfan
Submission Time 2023-12-11 15:19:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candies.cpp: In function ‘int32_t main()’:
candies.cpp:26:11: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
26 | int m[1e6+5];
| ~~~^~
candies.cpp:26:11: error: could not convert ‘(1.0e+6 + (double)5)’ from ‘double’ to ‘long unsigned int’
candies.cpp:26:11: error: size of array ‘m’ has non-integral type ‘double’