| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66556 | 周奕辰 | 02数字拼接 | C++ | Compile Error | 0 MS | 0 KB | 144 | 2024-03-09 14:08:14 |
#include <iostream> using namespace std; int main(){ int x,y,z; cin >> x >> y; z=x*10+y; cout << z^2; return 0; }
Main.cc: In function 'int main()':
Main.cc:7:14: error: no match for 'operator^' (operand types are 'std::basic_ostream' and 'int')
cout << z^2;
^
Main.cc:7:14: note: candidate: operator^(int, int)
Main.cc:7:14: note: no known conversion for argument 1 from 'std::basic_ostream' to 'int'
In file included from /usr/include/c++/5/ios:42:0,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from Main.cc:1:
/usr/include/c++/5/bits/ios_base.h:91:3: note: candidate: constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags, std::_Ios_Fmtflags)
operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
^
/usr/include/c++/5/bits/ios_base.h:91:3: note: no known conversion for argument 1 from 'std::basic_ostream' to 'std::_Ios_Fmtflags'
/usr/include/c++/5/bits/ios_base.h:133:3: note: candidate: constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode, std::_Ios_Openmode)
operator^(_Ios_Openmode __a, _Ios_Openmode __b)
^
/usr/include/c++/5/bits/ios_base.h:133:3: note: no known conversion for argument 1 from 'std::basic_ostream' to 'std::_Ios_Openmode'
/usr/include/c++/5/bits/ios_base.h:173:3: note: candidate: constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate, std::_Ios_Iostate)
operator^(_Ios_Iostate __a, _Ios_Iostate __b)
^
/usr/include/c++/5/bits/ios_base.h:173:3: note: no known conversion for argument 1 from 'std::basic_ostream' to 'std::_Ios_Iostate'