Submission #3786502
Source Code Expand
#include<iostream> int main() { int a,b; std::cin<<a<<b; std::cout<<b-a<<endl return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - 積雪深差 |
User | luogu_bot2 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 105 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:5:13: error: no match for ‘operator<<’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘int’) std::cin<<a<<b; ^ ./Main.cpp:5:13: note: candidate: operator<<(int, int) <built-in> ./Main.cpp:5:13: note: no known conversion for argument 1 from ‘std::istream {aka std::basic_istream<char>}’ to ‘int’ In file included from /usr/include/c++/5/iostream:39:0, from ./Main.cpp:1: /usr/include/c++/5/ostream:628:5: note: candidate: template<class _CharT, class _Traits, class _Tp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x) ^ /usr/include/c++/5/ostream:628:5: note: template argument deduction/substitution failed: ./Main.cpp:5:15: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’ std::cin<<a<<b; ^ In fil...