Problem squidzofrenzic
User PlayVoltz
Submission Time 2023-08-17 21:29:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squidzofrenzic.cpp: In function ‘int main()’:
squidzofrenzic.cpp:19:20: error: invalid type argument of unary ‘*’ (have ‘long int’)
19 | if(abs(avg+pval-*itlow)>=abs(avg+pval-*ithigh)){
| ^~~~~
squidzofrenzic.cpp:19:42: error: invalid type argument of unary ‘*’ (have ‘long int’)
19 | if(abs(avg+pval-*itlow)>=abs(avg+pval-*ithigh)){
| ^~~~~~
squidzofrenzic.cpp:20:51: error: no matching function for call to ‘distance(std::vector<int>::iterator, long int&)’
20 | indexes.push_back(distance(vect.begin(), ithigh));
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from squidzo