Record Detail

Compile Error

/in/call.cpp:8:10: error: no type named 'string' in namespace 'std'
    std::string name,status;
    ~~~~~^
/in/call.cpp:14:10: error: no member named 'cin' in namespace 'std'
    std::cin>>event_num;
    ~~~~~^
/in/call.cpp:17:18: error: variable length arrays are a C99 feature [-Werror,-Wvla-extension]
    client events[event_num-1];
                 ^
/in/call.cpp:20:18: error: no member named 'cin' in namespace 'std'
            std::cin >> events[i].timestamp;
            ~~~~~^
/in/call.cpp:21:18: error: no member named 'cin' in namespace 'std'
            std::cin >> events[i].name;
            ~~~~~^
/in/call.cpp:22:18: error: no member named 'cin' in namespace 'std'
            std::cin >> events[i].status;
            ~~~~~^
/in/call.cpp:23:18: error: no member named 'cin' in namespace 'std'
            std::cin >> events[i].duration;
            ~~~~~^
/in/call.cpp:32:14: error: no member named 'cout' in namespace 'std'
        std::cout << "Starting tick #"<<tick<<std::endl;
        ~~~~~^
/in/call.cpp:32:52: error: no member named 'endl' in namespace 'std'
        std::cout << "Starting tick #"<<tick<<std::endl;
                                              ~~~~~^
/in/call.cpp:36:22: error: no member named 'cout' in namespace 'std'
                std::cout << "Call from "<< events[i].name<<" a "<<events[i].status<<" member"<<std::endl;
                ~~~~~^
/in/call.cpp:36:102: error: no member named 'endl' in namespace 'std'
                std::cout << "Call from "<< events[i].name<<" a "<<events[i].status<<" member"<<std::endl;
                                                                                                ~~~~~^
/in/call.cpp:47:26: error: no member named 'cout' in namespace 'std'
                    std::cout << "wrong status!"<<std::endl;
                    ~~~~~^
/in/call.cpp:47:56: error: no member named 'endl' in namespace 'std'
                    std::cout << "wrong status!"<<std::endl;
                                                  ~~~~~^
/in/call.cpp:69:26: error: no member named 'cout' in namespace 'std'
                    std::cout << "Answering call from "<< victim->name <<std::endl;
                    ~~~~~^
/in/call.cpp:69:79: error: no member named 'endl' in namespace 'std'
                    std::cout << "Answering call from "<< victim->name <<std::endl;
                                                                         ~~~~~^
15 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-05 12:27:23
Judged At
2022-12-05 12:27:23
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes