Problem | catfight |
---|---|
User | Henries |
Submission Time | 2024-11-15 00:26:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catfight.cpp: In function ‘int main()’:
catfight.cpp:17:12: error: assignment of function ‘std::ios_base& std::right(std::ios_base&)’
17 | for(right = 0;right<n;right++){
| ~~~~~~^~~
catfight.cpp:17:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
17 | for(right = 0;right<n;right++){
| ^
catfight.cpp:17:29: error: lvalue required as increment operand
17 | for(right = 0;right<n;right++){
| ^~
catfight.cpp:18:11: error: invalid conversion from ‘std::ios_base& (*)(std::ios_base&)’ to ‘std::vector<long long int>::size_type’ {aka ‘long unsigned int’} [-fpermissive]
18 | while(v[right] >= currentpower){
| ^~~~~
| |
| std::ios_base& (*)(std::ios_base&)
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,