Problem | nycoordinates |
---|---|
User | JustKitkat |
Submission Time | 2024-10-31 22:17:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nycoordinates.cpp: In function ‘int main()’:
nycoordinates.cpp:11:21: error: conversion from ‘long double’ to ‘long unsigned int’ in a converted constant expression
11 | pair<int, int> arr[n];
| ^
nycoordinates.cpp:11:21: error: could not convert ‘n’ from ‘long double’ to ‘long unsigned int’
nycoordinates.cpp:11:21: error: size of array ‘arr’ has non-integral type ‘long double’
nycoordinates.cpp:13:15: error: invalid types ‘std::pair<long double, long double> [1][long double]’ for array subscript
13 | cin >> arr[i].first >> arr[i].second;
| ^
nycoordinates.cpp:13:31: error: invalid types ‘std::pair<long double, long double> [1][long double]’ for array subscript
13 | cin >> arr[i].first >> arr[i].second;
| ^
nycoordinates.cpp:15:15: error: invalid operands of types ‘std::pair<long double, long double> [1]’ and