/in/call.cpp:4:7: error: using declaration requires a qualified name
using name std;
^
/in/call.cpp:4:11: error: expected ';' after using declaration
using name std;
^
;
/in/call.cpp:9:3: error: unknown type name 'string'; did you mean 'std::string'?
string name;
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:10:3: error: unknown type name 'string'; did you mean 'std::string'?
string status;
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:13:27: error: unknown type name 'string'; did you mean 'std::string'?
Customer(int timestamp, string name, string status, int duration) {
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:13:40: error: unknown type name 'string'; did you mean 'std::string'?
Customer(int timestamp, string name, string status, int duration) {
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:28:3: error: no template named 'priority_queue'; did you mean 'std::priority_queue'?
priority_queue<Customer> platinumQueue;
^~~~~~~~~~~~~~
std::priority_queue
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:423:11: note: 'std::priority_queue' declared here
class priority_queue
^
/in/call.cpp:29:3: error: no template named 'priority_queue'; did you mean 'std::priority_queue'?
priority_queue<Customer> goldQueue;
^~~~~~~~~~~~~~
std::priority_queue
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:423:11: note: 'std::priority_queue' declared here
class priority_queue
^
/in/call.cpp:30:3: error: no template named 'priority_queue'; did you mean 'std::priority_queue'?
priority_queue<Customer> silverQueue;
^~~~~~~~~~~~~~
std::priority_queue
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:423:11: note: 'std::priority_queue' declared here
class priority_queue
^
/in/call.cpp:31:3: error: no template named 'priority_queue'; did you mean 'std::priority_queue'?
priority_queue<Customer> regularQueue;
^~~~~~~~~~~~~~
std::priority_queue
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stl_queue.h:423:11: note: 'std::priority_queue' declared here
class priority_queue
^
/in/call.cpp:35:3: error: use of undeclared identifier 'cin'; did you mean 'std::cin'?
cin >> numCalls;
^~~
std::cin
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/iostream:60:18: note: 'std::cin' declared here
extern istream cin; /// Linked to standard input
^
/in/call.cpp:40:5: error: unknown type name 'string'; did you mean 'std::string'?
string name;
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:41:5: error: unknown type name 'string'; did you mean 'std::string'?
string status;
^~~~~~
std::string
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/bits/stringfwd.h:74:33: note: 'std::string' declared here
typedef basic_string<char> string;
^
/in/call.cpp:44:5: 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.5.0/../../../../include/c++/7.5.0/iostream:60:18: note: 'std::cin' declared here
extern istream cin; /// Linked to standard input
^
/in/call.cpp:67:4: 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.5.0/../../../../include/c++/7.5.0/iostream:61:18: note: 'std::cout' declared here
extern ostream cout; /// Linked to standard output
^
/in/call.cpp:67:41: 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.5.0/../../../../include/c++/7.5.0/ostream:590:5: note: 'std::endl' declared here
endl(basic_ostream<_CharT, _Traits>& __os)
^
/in/call.cpp:73:7: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << "Call from " << platinumQueue.top().name << " a platinum member" << endl;
^~~~
std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/iostream:61:18: note: 'std::cout' declared here
extern ostream cout; /// Linked to standard output
^
/in/call.cpp:73:83: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?
cout << "Call from " << platinumQueue.top().name << " a platinum member" << endl;
^~~~
std::endl
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/ostream:590:5: note: 'std::endl' declared here
endl(basic_ostream<_CharT, _Traits>& __os)
^
/in/call.cpp:78:7: error: use of undeclared identifier 'cout'; did you mean 'std::cout'?
cout << "Call from " << goldQueue.top().name << " a gold member" << endl;
^~~~
std::cout
/usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/iostream:61:18: note: 'std::cout' declared here
extern ostream cout; /// Linked to standard output
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1