Record Detail

Compile Error

/in/call.cpp:10: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:12: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:24:5: error: unknown type name 'string'; did you mean 'std::string'?
    string temp;
    ^~~~~~
    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:25:5: error: unknown type name 'istringstream'; did you mean 'std::istringstream'?
    istringstream ifs;
    ^~~~~~~~~~~~~
    std::istringstream
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/iosfwd:150:38: note: 'std::istringstream' declared here
  typedef basic_istringstream<char>     istringstream;
                                        ^
/in/call.cpp:28: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:33: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:36: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:61: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:61:46: 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:66: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:66: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:92: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:92: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:99: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:99: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:106: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:106: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:113: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:113: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)
    ^
19 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-03 21:34:07
Judged At
2018-08-03 21:34:07
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes