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

Compile Error

exponentiate_easy.cpp: In function ‘int main()’:
exponentiate_easy.cpp:30:15: error: no match for ‘operator^’ (operand types are ‘std::basic_ostream<char>::__ostream_type’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
30 | cout << a[i]^b[i];
| ~~~~~~~~~~~~^~~~~
| | |
| | long long int
| std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
exponentiate_easy.cpp:30:15: note: candidate: ‘operator^(int, long long int)’ <built-in>
30 | cout << a[i]^b[i];
| ~~~~~~~~~~~~^~~~~
exponentiate_easy.cpp:30:15: 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,