Problem exponentiate_easy
User MegaG
Submission Time 2025-10-02 22:37:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exponentiate_easy.cpp: In function ‘int main()’:
exponentiate_easy.cpp:26:12: error: no match for ‘operator^’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
26 | cout << a^b;
| ~~~~~~~~~^~
| | |
| | long long int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
exponentiate_easy.cpp:26:12: note: candidate: ‘operator^(int, long long int)’ <built-in>
26 | cout << a^b;
| ~~~~~~~~~^~
exponentiate_easy.cpp:26:12: note: no known conversion for argument 1 from ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} to ‘int’
In file included from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from exponentiate_eas