AtCoder Beginner Contest 001

Submission #4230012

Source codeソースコード

#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

Task問題 B - 視程の通報
User nameユーザ名 tanimanianima364
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 CE
Score得点 -
Source lengthソースコード長 486 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./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...

Test case