Record Detail

Compile Error

/in/cipher.cpp: In function 'std::__cxx11::string encodeCharacter(char)':
/in/cipher.cpp:26:41: error: 'uppercaseGrid' was not declared in this scope
     const string (*grid)[5] = isUpper ? uppercaseGrid : lowercaseGrid;
                                         ^~~~~~~~~~~~~
/in/cipher.cpp:26:41: note: suggested alternative: 'uppercaseSquare'
     const string (*grid)[5] = isUpper ? uppercaseGrid : lowercaseGrid;
                                         ^~~~~~~~~~~~~
                                         uppercaseSquare
/in/cipher.cpp:26:57: error: 'lowercaseGrid' was not declared in this scope
     const string (*grid)[5] = isUpper ? uppercaseGrid : lowercaseGrid;
                                                         ^~~~~~~~~~~~~
/in/cipher.cpp:26:57: note: suggested alternative: 'lowercaseSquare'
     const string (*grid)[5] = isUpper ? uppercaseGrid : lowercaseGrid;
                                                         ^~~~~~~~~~~~~
                                                         lowercaseSquare
/in/cipher.cpp: In function 'std::__cxx11::string decodeTriple(const string&)':
/in/cipher.cpp:48:47: error: 'uppercaseGrid' was not declared in this scope
     const string (*grid)[5] = (prefix == 1) ? uppercaseGrid : lowercaseGrid;
                                               ^~~~~~~~~~~~~
/in/cipher.cpp:48:47: note: suggested alternative: 'uppercaseSquare'
     const string (*grid)[5] = (prefix == 1) ? uppercaseGrid : lowercaseGrid;
                                               ^~~~~~~~~~~~~
                                               uppercaseSquare
/in/cipher.cpp:48:63: error: 'lowercaseGrid' was not declared in this scope
     const string (*grid)[5] = (prefix == 1) ? uppercaseGrid : lowercaseGrid;
                                                               ^~~~~~~~~~~~~
/in/cipher.cpp:48:63: note: suggested alternative: 'lowercaseSquare'
     const string (*grid)[5] = (prefix == 1) ? uppercaseGrid : lowercaseGrid;
                                                               ^~~~~~~~~~~~~
                                                               lowercaseSquare
/in/compile/Makefile:23: recipe for target 'cipher.o' failed
make: *** [cipher.o] Error 1

Information

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