Submission #4230012
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main(){ int m,VV; cin>>m; if(m<100)cout<<"00"<<endl; else if(100<=m&&m<=5000){ if(m<=999){ VV=(10*m/1000); cout<<"0"<<VV<<endl; } else { VV=10*m/1000; cout<<VV<<endl; } } else if(6000<=m&&m<=30000){ VV=m/1000+50; cout<<VV<endl; } else if(35000<=m&&m<=70000){ VV=(m/1000-30)/5+80; cout<<VV<<endl; } else cout<<"89"<<endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 視程の通報 |
User | tanimanianima364 |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 486 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:20:13: error: no match for ‘operator<’ (operand types are ‘std::basic_ostream<char>’ and ‘<unresolved overloaded function type>’) cout<<VV<endl; ^ In file included from /usr/include/c++/5/regex:61:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:108, from ./Main.cpp:1: /usr/include/c++/5/bits/regex.h:1426:5: note: candidate: template<class _Bi_iter> bool std::operator<(const std::sub_match<_BiIter>&, const typename std::iterator_traits<_Iter>::value_type&) operator<(const sub_match<_Bi_iter>& __lhs, ^ /usr/include/c++/5/bits/regex.h:1426:5: note: template argument deduction/substitution failed: ./Main.cpp:20:14: note: ‘std::basic_ostream<char>’ is not derived from ‘const std::sub_match<_BiIter>’ cout<<VV<endl; ^ In file included from /usr/include/c++/5/regex:61:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:108, from ./Mai...