Record Detail

Compile Error

/in/call.cpp:8:5: error: unknown type name 'string'
    string commandA="/qadd";
    ^
/in/call.cpp:9:5: error: unknown type name 'string'
    string commandB="/cadd";
    ^
/in/call.cpp:10:5: error: unknown type name 'string'
    string sentence="My name is van, I /qadd{1} {{ee}11} {ww}";
    ^
/in/call.cpp:11:5: error: use of undeclared identifier 'cout'
    cout<<sentence<<endl;
    ^
/in/call.cpp:11:21: error: use of undeclared identifier 'endl'
    cout<<sentence<<endl;
                    ^
/in/call.cpp:18:5: error: use of undeclared identifier 'Dlist'
    Dlist<unsigned int> a;
    ^
/in/call.cpp:18:20: error: expected '(' for function-style cast or type construction
    Dlist<unsigned int> a;
          ~~~~~~~~ ^
/in/call.cpp:25:13: error: use of undeclared identifier 'cout'
            cout<<sentence.substr(i, 5)<<endl;
            ^
/in/call.cpp:25:42: error: use of undeclared identifier 'endl'
            cout<<sentence.substr(i, 5)<<endl;
                                         ^
/in/call.cpp:27:13: error: use of undeclared identifier 'cout'
            cout<<i<<endl;
            ^
/in/call.cpp:27:22: error: use of undeclared identifier 'endl'
            cout<<i<<endl;
                     ^
/in/call.cpp:29:17: error: use of undeclared identifier 'a'
                a.insertFront(&i);
                ^
/in/call.cpp:34:22: error: use of undeclared identifier 'a'
                if (!a.isEmpty()) {
                     ^
/in/call.cpp:35:21: error: use of undeclared identifier 'a'
                    a.removeFront();
                    ^
/in/call.cpp:45:5: error: use of undeclared identifier 'cout'
    cout<<sentence<<endl;
    ^
/in/call.cpp:45:21: error: use of undeclared identifier 'endl'
    cout<<sentence<<endl;
                    ^
16 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
2020-12-15 23:25:00
Judged At
2020-12-15 23:25:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes