Problem goofyarray
User YellowPurpleDragon
Submission Time 2024-08-18 11:24:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goofyarray.cpp: In function ‘int main()’:
goofyarray.cpp:13:31: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
13 | ll a, b; cin >> a >> b; ll c[a], d[a-1], e[a-1];
| ^
goofyarray.cpp:13:31: error: could not convert ‘a’ from ‘long double’ to ‘long unsigned int’
goofyarray.cpp:13:31: error: size of array ‘c’ has non-integral type ‘long double’
goofyarray.cpp:13:38: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
13 | ll a, b; cin >> a >> b; ll c[a], d[a-1], e[a-1];
| ~^~
goofyarray.cpp:13:38: error: could not convert ‘(a - (long double)1)’ from ‘long double’ to ‘long unsigned int’
goofyarray.cpp:13:38: error: size of array ‘d’ has non-integral type ‘long double’
goofyarray.cpp:13:46: error: conversion from ‘long double’ to ‘long unsigned int’ in a conve