Record Detail

Accepted

In file included from /in/driver/driver.cpp:1:0:
/in/ex2.h: In function 'int frequency(User, std::__cxx11::string)':
/in/ex2.h:59:70: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while ((index = user.blog_list->titles[i].find(word, index)) < user.blog_list->titles[i].length()){
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex2.h:66:72: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         while ((index = user.blog_list->contents[j].find(word, index)) < user.blog_list->contents[j].length()){
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Accepted 1ms 456.0 KiB
#2 Accepted 1ms 360.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 1ms 384.0 KiB
#5 Accepted 2ms 452.0 KiB
#6 Accepted 1ms 416.0 KiB
#7 Accepted 2ms 388.0 KiB
#8 Accepted 1ms 332.0 KiB
#9 Accepted 2ms 452.0 KiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 2ms 384.0 KiB
#12 Accepted 1ms 384.0 KiB
#13 Accepted 2ms 384.0 KiB
#14 Accepted 2ms 424.0 KiB
#15 Accepted 1ms 380.0 KiB
#16 Accepted 2ms 384.0 KiB
#17 Accepted 2ms 388.0 KiB
#18 Accepted 2ms 400.0 KiB
#19 Accepted 1ms 384.0 KiB
#20 Accepted 2ms 384.0 KiB

Information

Submit By
Type
Submission
Homework
Exercise 2
Language
C++
Submit At
2022-09-30 11:19:13
Judged At
2022-10-03 16:16:02
Judged By
Score
300
Total Time
39ms
Peak Memory
456.0 KiB