Record Detail

Compile Error

/in/call.cpp:11:17: error: unknown type name 'string'; did you mean 'std::string'?
int statusIndex(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:21:6: 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:23:6: 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:34:30: 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:34:43: 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:54:5: error: unknown type name 'string'; did you mean 'std::string'?
    string getName() const{
    ^~~~~~
    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:100:13: error: unknown type name 'string'; did you mean 'std::string'?
            string ipName;
            ^~~~~~
            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:101:13: error: unknown type name 'string'; did you mean 'std::string'?
            string ipStatus;
            ^~~~~~
            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;   
                                ^
8 errors generated.
/in/Compile/Makefile:39: recipe for target 'buildCall' failed
make: *** [buildCall] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2022-12-17 22:20:13
Judged At
2022-12-17 22:20:13
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes