Problem | exponentiate_ex |
---|---|
User | YSH2020 |
Submission Time | 2023-09-30 16:23:03 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
exponentiate_ex.cpp: In function ‘int main()’:
exponentiate_ex.cpp:22:50: error: no match for ‘operator>>’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘char’)
22 | cout << fast_expo(((a)%c+c)%c, ((b)%c+c)%c, c) >> '\n';
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~
| | |
| | char
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
exponentiate_ex.cpp:22:50: note: candidate: ‘operator>>(int, int)’ <built-in>
22 | cout << fast_expo(((a)%c+c)%c, ((b)%c+c)%c, c) >> '\n';
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
exponentiate_ex.cpp:22:50: note: no known conversion for argument 1 from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::b