Record Detail

Wrong Answer

/in/p1.cpp: In function 'void display(int, std::__cxx11::string, std::__cxx11::string, int*, int)':
/in/p1.cpp:69:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (j = 0; j < myword.length(); j++)
              ~~^~~~~~~~~~~~~~~~~
/in/p1.cpp:92:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (j = 0; j < used_letter.length(); j++)
              ~~^~~~~~~~~~~~~~~~~~~~~~
/in/p1.cpp:66:6: warning: unused variable 'ii' [-Wunused-variable]
  int ii = 0;
      ^~
/in/p1.cpp: In function 'int main()':
/in/p1.cpp:150:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (i = 0; i < input_history.length(); i++)
               ~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/p1.cpp:172:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for (i = 0; i < right_history.length(); i++)
               ~~^~~~~~~~~~~~~~~~~~~~~~~~
/in/p1.cpp:187:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   while ((begin = myword.find(input_letter, begin)) != string::npos)     //*****find all the same letter in the correspoding word and obtain the position of the letter
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/in/p1.cpp:109:6: warning: unused variable 'arrsize' [-Wunused-variable]
  int arrsize;
      ^~~~~~~
# Status Time Cost Memory Cost
#1 Accepted 2ms 328.0 KiB
#2 Accepted 2ms 416.0 KiB
#3 Accepted 2ms 324.0 KiB
#4 Accepted 2ms 416.0 KiB
#5 Accepted 2ms 380.0 KiB
#6 Accepted 2ms 444.0 KiB
#7 Accepted 2ms 324.0 KiB
#8 Accepted 2ms 376.0 KiB
#9 Accepted 2ms 448.0 KiB
#10 Accepted 2ms 448.0 KiB
#11 Accepted 2ms 376.0 KiB
#12 Accepted 2ms 388.0 KiB
#13 Accepted 2ms 384.0 KiB
#14 Accepted 2ms 372.0 KiB
#15 Accepted 2ms 372.0 KiB
#16 Accepted 2ms 376.0 KiB
#17 Wrong Answer 2ms 380.0 KiB
#18 Wrong Answer 2ms 416.0 KiB
#19 Wrong Answer 2ms 372.0 KiB
#20 Wrong Answer 2ms 376.0 KiB

Information

Submit By
Type
Submission
Homework
Project One: Hangman
Language
C++
Submit At
2018-06-03 12:34:32
Judged At
2018-09-13 10:44:53
Judged By
Score
160
Total Time
47ms
Peak Memory
448.0 KiB