Problem uniquenumbers
User P55D2K
Submission Time 2023-04-21 13:03:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:22:14: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
22 | string N[n];
| ^
uniquenumbers.cpp:22:14: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
uniquenumbers.cpp:22:14: error: size of array ‘N’ has non-integral type ‘long double’
uniquenumbers.cpp:26:27: error: could not convert ‘n’ from ‘long double’ to ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
26 | cout << amt_unique(N, n) << endl;
| ^
| |
| long double