Record Detail

Compile Error

/in/cipher.cpp: In function 'void encryption_c()':
/in/cipher.cpp:65:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for (int i=0;i<str.length();i++)
                ~^~~~~~~~~~~~~
/in/cipher.cpp: In function 'void encryption_s()':
/in/cipher.cpp:77:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
   for (int i=0;i<str.length()-1;i++)
                ~^~~~~~~~~~~~~~~
/in/cipher.cpp: In function 'std::__cxx11::string findPosition(char)':
/in/cipher.cpp:58:1: error: control reaches end of non-void function [-Werror=return-type]
 }
 ^
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 03:41:14
Judged At
2024-11-03 03:41:14
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes