Record Detail

Compile Error

/in/ex1.cpp:4:5: error: unknown type name 'string'
    string s[99999];
    ^
/in/ex1.cpp:6:12: error: use of undeclared identifier 'cin'
    while (cin >> s[i]) {
           ^
/in/ex1.cpp:10:9: error: use of undeclared identifier 'cout'
        cout << s[k] << " ";
        ^
/in/ex1.cpp:14:5: error: unknown type name 'string'
    string s[99999];
    ^
/in/ex1.cpp:16:12: error: use of undeclared identifier 'cin'
    while (cin >> s[i]) {
           ^
/in/ex1.cpp:20:9: error: use of undeclared identifier 'cout'
        cout << s[k] << " ";
        ^
/in/ex1.cpp:24:5: error: use of undeclared identifier 'vector'
    vector<string> s;
    ^
/in/ex1.cpp:24:12: error: use of undeclared identifier 'string'
    vector<string> s;
           ^
/in/ex1.cpp:24:20: error: use of undeclared identifier 's'
    vector<string> s;
                   ^
/in/ex1.cpp:25:5: error: unknown type name 'string'
    string buffer;
    ^
/in/ex1.cpp:26:12: error: use of undeclared identifier 'cin'
    while (cin >> buffer) {
           ^
/in/ex1.cpp:27:9: error: use of undeclared identifier 's'
        s.push_back(buffer);
        ^
/in/ex1.cpp:29:5: error: use of undeclared identifier 'vector'
    vector<string>::reverse_iterator it;
    ^
/in/ex1.cpp:29:12: error: use of undeclared identifier 'string'
    vector<string>::reverse_iterator it;
           ^
/in/ex1.cpp:29:21: error: no member named 'reverse_iterator' in the global namespace
    vector<string>::reverse_iterator it;
                  ~~^
/in/ex1.cpp:30:10: error: use of undeclared identifier 'it'
    for (it = s.rbegin(); it != s.rend(); ++it)
         ^
/in/ex1.cpp:30:15: error: use of undeclared identifier 's'
    for (it = s.rbegin(); it != s.rend(); ++it)
              ^
/in/ex1.cpp:30:27: error: use of undeclared identifier 'it'
    for (it = s.rbegin(); it != s.rend(); ++it)
                          ^
/in/ex1.cpp:30:33: error: use of undeclared identifier 's'
    for (it = s.rbegin(); it != s.rend(); ++it)
                                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Information

Submit By
Type
Submission
Homework
Homework 8
Language
C++ (Clang++, with memory check)
Submit At
2022-12-10 12:44:18
Judged At
2022-12-10 12:44:18
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes