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

Compile Error

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