Problem walking
User Josh28
Submission Time 2023-04-05 17:24:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

walking.cpp: In function ‘void solve()’:
walking.cpp:64:11: error: conversion from ‘ll’ {aka ‘long double’} to ‘long unsigned int’ in a converted constant expression
64 | pll arr[n];
| ^
walking.cpp:64:11: error: could not convert ‘n’ from ‘ll’ {aka ‘long double’} to ‘long unsigned int’
walking.cpp:64:11: error: size of array ‘arr’ has non-integral type ‘ll’ {aka ‘long double’}
walking.cpp:67:10: error: invalid types ‘std::pair<long double, long double> [1][ll {aka long double}]’ for array subscript
67 | arr[q] = MP(t1, t2);
| ^
walking.cpp:69:16: error: invalid operands of types ‘std::pair<long double, long double> [1]’ and ‘ll’ {aka ‘long double’} to binary ‘operator+’
69 | sort(arr, arr+n);
| ~~~^~
| | |
| | ll {aka long double}
| std::pair<long double, long double> [1]
walking.cpp:70:9: error: conv