Record Detail

Compile Error

/in/call.cpp:8:5: error: unknown type name 'string'; did you mean 'std::string'?
    string name;
    ^~~~~~
    std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
  typedef basic_string<char>    string;   
                                ^
/in/call.cpp:10:5: error: unknown type name 'string'; did you mean 'std::string'?
    string status;
    ^~~~~~
    std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
  typedef basic_string<char>    string;   
                                ^
/in/call.cpp:22:5: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
    cin >> num;
    ^~~
    std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
/in/call.cpp:27:5: error: unknown type name 'string'; did you mean 'std::string'?
    string name, status;
    ^~~~~~
    std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
  typedef basic_string<char>    string;   
                                ^
/in/call.cpp:30:9: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
        cin >> timestamp >> name >> status >> duration;
        ^~~
        std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:60:18: note: 'std::cin' declared here
  extern istream cin;           /// Linked to standard input
                 ^
/in/call.cpp:42:9: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
        cout << "Starting tick #" << tick <<endl;
        ^~~~
        std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:42:45: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
        cout << "Starting tick #" << tick <<endl;
                                            ^~~~
                                            std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
/in/call.cpp:47:17: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
                cout << "Call from " << customer[i].name << " a " << customer[i].status << " member" << endl;
                ^~~~
                std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:47:105: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
                cout << "Call from " << customer[i].name << " a " << customer[i].status << " member" << endl;
                                                                                                        ^~~~
                                                                                                        std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
/in/call.cpp:73:13: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
            cout << "Answering call from " << tempcustomer->name << endl;
            ^~~~
            std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:73:69: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
            cout << "Answering call from " << tempcustomer->name << endl;
                                                                    ^~~~
                                                                    std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
/in/call.cpp:80:13: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
            cout << "Answering call from " << tempcustomer->name << endl;
            ^~~~
            std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:80:69: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
            cout << "Answering call from " << tempcustomer->name << endl;
                                                                    ^~~~
                                                                    std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
/in/call.cpp:87:13: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
            cout << "Answering call from " << tempcustomer->name << endl;
            ^~~~
            std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:87:69: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
            cout << "Answering call from " << tempcustomer->name << endl;
                                                                    ^~~~
                                                                    std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
/in/call.cpp:94:13: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
            cout << "Answering call from " << tempcustomer->name << endl;
            ^~~~
            std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iostream:61:18: note: 'std::cout' declared here
  extern ostream cout;          /// Linked to standard output
                 ^
/in/call.cpp:94:69: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
            cout << "Answering call from " << tempcustomer->name << endl;
                                                                    ^~~~
                                                                    std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/ostream:590:5: note: 'std::endl' declared here
    endl(basic_ostream<_CharT, _Traits>& __os)
    ^
17 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1

Information

Submit By
Type
Submission
Homework
Project Five: List, Stack, and Queue
Language
C++
Submit At
2018-08-05 12:15:30
Judged At
2018-08-05 12:15:30
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes