Problem | clocktower |
---|---|
User | wzhci11 |
Submission Time | 2024-04-10 17:14:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
clocktower.cpp: In function ‘int main()’:
clocktower.cpp:10:23: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
10 | long long height[n-1];
| ~^~
clocktower.cpp:10:23: error: could not convert ‘(n - (long double)1)’ from ‘long double’ to ‘long unsigned int’
clocktower.cpp:10:23: error: size of array ‘height’ has non-integral type ‘long double’
clocktower.cpp:12:24: error: invalid types ‘long long int [1][long double]’ for array subscript
12 | cin >> height[i];
| ^