Submission #4010318


Source Code Expand

#include<iostream>
#include<utility>
using namespace std;

int main()
{
    int A,B;
    cin >> A >> B;
    swap(A,B);
    cout << A << B << end;;
    return 0;
}

Submission Info

Submission Time
Task A - スワップ
User ky0n
Language C++14 (GCC 5.4.1)
Score 0
Code Size 175 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:10:20: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’)
     cout << A << B << end;;
                    ^
In file included from /usr/include/c++/5/iostream:39:0,
                 from ./Main.cpp:1:
/usr/include/c++/5/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^
/usr/include/c++/5/ostream:108:7: note:   no known conversion for argument 1 from ‘<unresolved overloaded function type>’ to ‘std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_o...