Record Detail

Compile Error

In file included from /in/ex3.cpp:3:0:
/in/cipher.h:17:1: error: 'string' does not name a type; did you mean 'stdin'?
 string encodeCharacter(char c);
 ^~~~~~
 stdin
/in/cipher.h:18:1: error: 'string' does not name a type; did you mean 'stdin'?
 string decodeTriple(const string& code);
 ^~~~~~
 stdin
/in/cipher.h:19:1: error: 'string' does not name a type; did you mean 'stdin'?
 string encodeMessage(const string& message);
 ^~~~~~
 stdin
/in/cipher.h:20:1: error: 'string' does not name a type; did you mean 'stdin'?
 string decodeMessage(const string& code);
 ^~~~~~
 stdin
/in/ex3.cpp: In function 'int main(int, char**)':
/in/ex3.cpp:41:26: error: 'encodeMessage' was not declared in this scope
         string encoded = encodeMessage(input);
                          ^~~~~~~~~~~~~
/in/ex3.cpp:56:30: error: 'decodeMessage' was not declared in this scope
             string decoded = decodeMessage(compactInput);
                              ^~~~~~~~~~~~~
/in/ex3.cpp:59:30: error: 'decodeMessage' was not declared in this scope
             string decoded = decodeMessage(input);
                              ^~~~~~~~~~~~~
/in/compile/Makefile:20: recipe for target 'ex3.o' failed
make: *** [ex3.o] Error 1

Information

Submit By
Type
Submission
Homework
Exercise 3
Language
C++
Submit At
2024-11-03 17:28:39
Judged At
2024-11-03 17:28:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes