C++
- voluntas
 - @ignis_fatuus
 - ブン
 - @Linda_pp
 - 清楚なC++メイドBOT
 - @tzik_tack
 - 長谷川一輝
 - wraith13
 - @jj1bdx
 - @cpp_akira
 - 安藤敏彦
 - @srz_zumix
 - Siv3D
 - takezoh
 - まろ
 - @okdshin
 - @hnokx
 - @ishidakei
 - @take_cheeze
 - TAKEI Yuya
 - @mumumu
 - I (@wx257osn2)
 - Tommy6
 - @tyottyoworks
 - ___shanon
 - わたやん
 - @KorekaraSEDB
 - @kariya_mitsuru
 - @ciniml
 - @beam2d
 - @grafi_tt
 - @nekketsuuu
 - LouiS0616
 - @volanja
 - 大鎌広
 - むてら
 - ガチKGB
 - 三重野賢人
 
x
100
1
    2
    3
    4
    5
    using namespace std;6
7
    int main ()8
    {9
10
11
12
13
    int dial;14
    string dial2;15
    string dial3;16
    string cin;17
    string hee;18
19
    cout << "C PHONE ver 1.0" << endl;20
    cout << "C PHONE dials a phone number and can transcribe what the other person is saying." << 21
    endl;22
    cout << "And instead of you talking, you will input what you'd like to say and a robot voice will 23
    say it to the person" << endl;24
    cout << "that is on the other line for you!" << endl;25
    cout << "Type 1: to dial a number" << endl;26
    cout << "Type 2 for about C PHONE." << endl;27
    cin >> dial).get();28
29
    if (dial == 1) {30
    31
        cout << "Type the phone number in which you would like to dial below. (+1) US" << endl;32
        cin >> dial2;33
    34
        std::cout << "Dialing" << std::endl;35
        std::chrono::seconds duratt( 7);36
        std::this_thread::sleep_for( duratt );37
        std::cout << "Connected!" << std::endl;38
    39
        cout << "LINE 1: Hello" << endl;40
        cin >> dial3;41
    42
        cout << "You: " << dial3 << endl;43
    44
        std::cout << "Transcribing..." << std::endl;45
        std::chrono::seconds durat( 5);46
        std::this_thread::sleep_for( durat );47
        std::cout << "LINE 1: How are you" << std::endl;48
        cin >> cin;49
    50
    51
    52
    53
    54
    55
    56
    }57
58
    if (dial == 2) {59
    60
    cout << "Enter the passcode to continue."61
    cin >> hee;62
    63
    if (hee == "4321") {64
        65
    cout << "Correct." << endl;66
    cout << "About: Written in C++. This is a prank for your friends and cannot make real phone 67
    calls." << endl;68
        69
        70
        71
        72
        73
        }74
    75
        if (hee < "4321" or > "4321"){76
        77
            cout << "Incorrect password." << endl;78
            cout << "Please try again." << endl;79
        80
        $ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-10.1.0/include -std=gnu++2a 
Start
prog.cc:22:13: warning: missing terminating " character
   22 |     cout << "And instead of you talking, you will input what you'd like to say and a robot voice will
      |             ^
prog.cc:22:13: error: missing terminating " character
   22 |     cout << "And instead of you talking, you will input what you'd like to say and a robot voice will
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
prog.cc:23:25: warning: missing terminating " character
   23 |     say it to the person" << endl;
      |                         ^
prog.cc:23:25: error: missing terminating " character
   23 |     say it to the person" << endl;
      |                         ^~~~~~~~~~
prog.cc:66:13: warning: missing terminating " character
   66 |     cout << "About: Written in C++. This is a prank for your friends and cannot make real phone
      |             ^
prog.cc:66:13: error: missing terminating " character
   66 |     cout << "About: Written in C++. This is a prank for your friends and cannot make real phone
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
prog.cc:67:11: warning: missing terminating " character
   67 |     calls." << endl;
      |           ^
prog.cc:67:11: error: missing terminating " character
   67 |     calls." << endl;
      |           ^~~~~~~~~~
prog.cc: In function 'int main()':
prog.cc:23:5: error: 'say' was not declared in this scope
   23 |     say it to the person" << endl;
      |     ^~~
prog.cc:27:9: error: no match for 'operator>>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'int')
   27 |     cin >> dial).get();
      |     ~~~ ^~ ~~~~
      |     |      |
      |     |      int
      |     std::string {aka std::__cxx11::basic_string<char>}
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 1476 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
  931 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
  756 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
  761 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note: candidate: 'template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)'
  963 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
  803 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
  808 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note:   template argument deduction/substitution failed:
prog.cc:27:12: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   27 |     cin >> dial).get();
      |            ^~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note: candidate: 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)'
  980 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__cxx11::basic_string<char>&; _Tp = int&]':
prog.cc:27:12:   required from here
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
prog.cc:32:13: error: no match for 'operator>>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   32 |         cin >> dial2;
      |         ~~~ ^~ ~~~~~
      |         |      |
      |         |      basic_string<[...]>
      |         basic_string<[...]>
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 1476 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
  931 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
  756 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
  761 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note: candidate: 'template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)'
  963 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
  803 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
  808 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note:   template argument deduction/substitution failed:
prog.cc:32:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   32 |         cin >> dial2;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note: candidate: 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)'
  980 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__cxx11::basic_string<char>&; _Tp = std::__cxx11::basic_string<char>&]':
prog.cc:32:16:   required from here
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
prog.cc:40:13: error: no match for 'operator>>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   40 |         cin >> dial3;
      |         ~~~ ^~ ~~~~~
      |         |      |
      |         |      basic_string<[...]>
      |         basic_string<[...]>
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 1476 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
  931 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
  756 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
  761 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note: candidate: 'template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)'
  963 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
  803 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
  808 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note:   template argument deduction/substitution failed:
prog.cc:40:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   40 |         cin >> dial3;
      |                ^~~~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note: candidate: 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)'
  980 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__cxx11::basic_string<char>&; _Tp = std::__cxx11::basic_string<char>&]':
prog.cc:40:16:   required from here
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
prog.cc:48:13: error: no match for 'operator>>' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   48 |         cin >> cin;
      |         ~~~ ^~ ~~~
      |         |      |
      |         |      basic_string<[...]>
      |         basic_string<[...]>
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/string:56,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/locale_classes.h:40,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/ios_base.h:41,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ios:42,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/ostream:38,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:39,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::__cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
 1476 |     operator>>(basic_istream<_CharT, _Traits>& __in,
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/basic_string.tcc:1476:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)'
  931 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:931:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)'
  756 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:756:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)'
  761 |     operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:761:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:991,
                 from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note: candidate: 'template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)'
  963 |     operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/bits/istream.tcc:963:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)'
  803 |     operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:803:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)'
  808 |     operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:808:5: note:   template argument deduction/substitution failed:
prog.cc:48:16: note:   'std::string' {aka 'std::__cxx11::basic_string<char>'} is not derived from 'std::basic_istream<char, _Traits>'
   48 |         cin >> cin;
      |                ^~~
In file included from /opt/wandbox/gcc-10.1.0/include/c++/10.1.0/iostream:40,
                 from prog.cc:1:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note: candidate: 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&)'
  980 |     operator>>(_Istream&& __is, _Tp&& __x)
      |     ^~~~~~~~
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: note:   template argument deduction/substitution failed:
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream: In substitution of 'template<class _Istream, class _Tp> typename std::enable_if<std::__and_<std::__not_<std::is_lvalue_reference<_Tp> >, std::__is_convertible_to_basic_istream<_Istream>, std::__is_extractable<typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type, _Tp&&, void> >::value, typename std::__is_convertible_to_basic_istream<_Tp>::__istream_type>::type std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::__cxx11::basic_string<char>&; _Tp = std::__cxx11::basic_string<char>&]':
prog.cc:48:16:   required from here
/opt/wandbox/gcc-10.1.0/include/c++/10.1.0/istream:980:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
prog.cc:60:46: error: expected ';' before 'cin'
   60 |     cout << "Enter the passcode to continue."
      |                                              ^
      |                                              ;
   61 |     cin >> hee;
      |     ~~~                                       
prog.cc:67:5: error: 'calls' was not declared in this scope; did you mean 'calloc'?
   67 |     calls." << endl;
      |     ^~~~~
      |     calloc
prog.cc:73:9: error: expected unqualified-id before '}' token
   73 |         }
      |         ^
prog.cc:75:29: error: expected primary-expression before '>' token
   75 |         if (hee < "4321" or > "4321"){
      |                             ^
1
Finish