Problem | towers |
---|---|
User | PlayVoltz |
Submission Time | 2023-09-28 11:52:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
towers.cpp: In function ‘int32_t main()’:
towers.cpp:61:22: error: conversion from ‘long long int [100000]’ to non-scalar type ‘std::vector<long long int>’ requested
61 | vector<int> fvect = vect;
| ^~~~
towers.cpp:62:12: error: request for member ‘begin’ in ‘vect’, which is of non-class type ‘long long int [100000]’
62 | sort(vect.begin(), vect.end());
| ^~~~~
towers.cpp:62:26: error: request for member ‘end’ in ‘vect’, which is of non-class type ‘long long int [100000]’
62 | sort(vect.begin(), vect.end());
| ^~~
towers.cpp:72:29: error: request for member ‘begin’ in ‘vect’, which is of non-class type ‘long long int [100000]’
72 | int i1 = upper_bound(vect.begin(), vect.end(), fvect[i]-d)-1-vect.begin();
| ^~~~~
towers.cpp:72:43: error: request for member ‘end’ in ‘vect’, which is of non-class type ‘long long i