Could anyone help me to understand following line of code:
sol< ?=f((1<< n)-1,i,0)+abs(P[i])*price;
I am studying an algorithm written using c++ and it has following operator < ?=
. My problem is with understanding < ?=
operator. Also when I compile this code using g++ compiler , it gives error message for above line of code line of code
following is the error message returned.
Hello.cpp: In function ‘int main()’:
Hello.cpp:115: error: ‘memset’ was not declared in this scope
Hello.cpp:142: error: expected primary-expression before ‘?’ token
Hello.cpp:142: error: expected primary-expression before ‘=’ token
Hello.cpp:142: error: expected ‘:’ before ‘;’ token
Hello.cpp:142: error: expected primary-expression before ‘;’ token
Maybe < ?=
it is not a single operator, but I can not understand what exactly this line of code does.
Thanks in advance for the time you spent reading this post.