Problem binaryspells
User blackscreen1
Submission Time 2023-11-10 10:10:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binaryspells.cpp: In function ‘int main()’:
binaryspells.cpp:44:7: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
44 | ll a[n];
| ^
binaryspells.cpp:44:7: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
binaryspells.cpp:44:7: error: size of array ‘a’ has non-integral type ‘long double’
binaryspells.cpp:45:9: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
45 | pll ps[n];
| ^
binaryspells.cpp:45:9: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
binaryspells.cpp:45:9: error: size of array ‘ps’ has non-integral type ‘long double’
binaryspells.cpp:47:13: error: invalid types ‘long double [1][long double]’ for array subscript
47 | cin >> a[i];
| ^
binaryspells.cpp:48:7: error: invalid types ‘std::pair<long double, long double> [1][long double