Submission #1242230
Source Code Expand
#include<iostream> #include<string> using namespace std; int main(){ int A; int B; int C; int d; int e; int f; cin >>A>>d>>B>e>>C>>f; cout<<((A*d/10)+(B*e/10)+(C*f/10))<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - プロコン |
User | erjgah |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 240 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:14:16: error: no match for ‘operator>’ (operand types are ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ and ‘int’) cin >>A>>d>>B>e>>C>>f; ^ ./Main.cpp:14:16: note: candidate: operator>(int, int) <built-in> ./Main.cpp:14:16: note: no known conversion for argument 1 from ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ to ‘int’ In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0, from /usr/include/c++/5/bits/char_traits.h:39, from /usr/include/c++/5/ios:40, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from ./Main.cpp:1: /usr/include/c++/5/bits/stl_pair.h:233:5: note: candidate: template<class _T1, class _T2> constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ...