Submission #2214062


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll a; 
int main()
{
	cin>>a;
	cout<2*a;
}

Submission Info

Submission Time
Task A - 流行
User luogu_bot3
Language C++ (GCC 5.4.1)
Score 0
Code Size 120 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:8:6: error: no match for ‘operator<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘ll {aka long long int}’)
  cout<2*a;
      ^
In file included from /usr/include/c++/5/utility:70:0,
                 from /usr/include/c++/5/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:64,
                 from ./Main.cpp:1:
/usr/include/c++/5/bits/stl_pair.h:220:5: note: candidate: template<class _T1, class _T2> bool std::operator<(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^
/usr/include/c++/5/bits/stl_pair.h:220:5: note:   template argument deduction/substitution failed:
./Main.cpp:8:9: note:   ‘std::ostream {aka std::basic_ostream<char>}’ is not derived from ‘const std::pair<_T1, _T2>’
  cout<2*a;
         ^
In file included from /usr/include/c++/5/bits/stl_algobase.h:67:0,
                 from /usr/include/c++/5/algorithm...