Problem clocktower
User cjcube
Submission Time 2023-11-23 18:41:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

clocktower.cpp: In function ‘int main()’:
clocktower.cpp:5:24: error: expected initializer before ‘>>’ token
5 | long double n, h, cin >> n >> h;
| ^~
clocktower.cpp:6:17: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
6 | long double p[n-1];
| ~^~
clocktower.cpp:6:17: error: could not convert ‘(n - (long double)1)’ from ‘long double’ to ‘long unsigned int’
clocktower.cpp:6:17: error: size of array ‘p’ has non-integral type ‘long double’