Record Detail

Accepted

/in/p1.cpp: In function 'int display(int*, int, std::__cxx11::string)':
/in/p1.cpp:9:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (i = 0; i < word.length(); i++) {
                 ~~^~~~~~~~~~~~~~~
/in/p1.cpp:16:55: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (b[i] == 1 && (word.find((char) ('a' + i)) == -1)) cout << (char) ('a' + i) << " ";
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/in/p1.cpp: In function 'int main()':
/in/p1.cpp:42:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (word.find(c) == -1) score++;
                     ~~~~~~~~~~~~~^~~~~
/in/p1.cpp:47:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (i = 0; i < word.length(); i++)
                         ~~^~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted 2ms 376.0 KiB
#2 Accepted 2ms 428.0 KiB
#3 Accepted 2ms 444.0 KiB
#4 Accepted 2ms 416.0 KiB
#5 Accepted 2ms 408.0 KiB
#6 Accepted 2ms 324.0 KiB
#7 Accepted 2ms 424.0 KiB
#8 Accepted 2ms 480.0 KiB
#9 Accepted 2ms 340.0 KiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 2ms 376.0 KiB
#12 Accepted 2ms 448.0 KiB
#13 Accepted 2ms 376.0 KiB
#14 Accepted 2ms 376.0 KiB
#15 Accepted 2ms 372.0 KiB
#16 Accepted 3ms 324.0 KiB
#17 Accepted 2ms 416.0 KiB
#18 Accepted 2ms 372.0 KiB
#19 Accepted 2ms 440.0 KiB
#20 Accepted 3ms 404.0 KiB

Information

Submit By
Type
Submission
Homework
Project One: Hangman
Language
C++
Submit At
2018-05-31 10:11:21
Judged At
2018-09-13 10:44:19
Judged By
Score
200
Total Time
53ms
Peak Memory
480.0 KiB