| Problem | lunchbox |
|---|---|
| User | Memeathon |
| Submission Time | 2025-02-08 21:38:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:2:17: error: conversion from ‘double’ to ‘long unsigned int’ in a converted constant expression
2 | #define maxn 2e5+5
| ~~~^~
lunchbox.cpp:4:13: note: in expansion of macro ‘maxn’
4 | int n, m, a[maxn], ans=0;
| ^~~~
lunchbox.cpp:2:17: error: could not convert ‘(2.0e+5 + (double)5)’ from ‘double’ to ‘long unsigned int’
2 | #define maxn 2e5+5
| ~~~^~
lunchbox.cpp:4:13: note: in expansion of macro ‘maxn’
4 | int n, m, a[maxn], ans=0;
| ^~~~
lunchbox.cpp:2:17: error: size of array ‘a’ has non-integral type ‘double’
2 | #define maxn 2e5+5
| ~~~^~
lunchbox.cpp:4:13: note: in expansion of macro ‘maxn’
4 | int n, m, a[maxn], ans=0;
| ^~~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> n