Record Detail

Compile Error

/in/cipher.cpp: In function 'std::__cxx11::string Encryption(std::__cxx11::string, bool)':
/in/cipher.cpp:25:25: error: comparison with string literal results in unspecified behavior [-Werror=address]
     else if(message[i]=="j"){
                         ^~~
/in/cipher.cpp:25:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
/in/cipher.cpp:28:25: error: comparison with string literal results in unspecified behavior [-Werror=address]
     else if(message[i]=="J"){
                         ^~~
/in/cipher.cpp:28:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
cc1plus: all warnings being treated as errors
/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 23:57:28
Judged At
2024-11-03 23:57:28
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes