Compilation Failed
In file included from runner.c++:14:0:
solution.h: In function ‘void getFloorAndCeil(int*, int, int)’:
solution.h:76:15: error: invalid operands of types ‘const char [2]’ and ‘int’ to binary ‘operator<<‘
cout<‘ to ‘int*’ for argument ‘1’ to ‘void getFloorAndCeil(int*, int, int)’
pair ans = getFloorAndCeil(cpy, N[i], X[i]);
^
runner.c++: In member function ‘void Runner::executeAndPrintOutput()’:
runner.c++:45:68: error: cannot convert ‘__gnu_cxx::__alloc_traits > >::value_type {aka std::vector}’ to ‘int*’ for argument ‘1’ to ‘void getFloorAndCeil(int*, int, int)’
pair ans = getFloorAndCeil(arr[i], N[i], X[i]);
I tried to run my code on coding ninjas editor but I didn’t get my desired output.
Aditya Gupta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.