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:63:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j <= user.blog_list->titles[i].size()-word.size(); j = j + word.size()){
                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex2.h:64:57: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (user.blog_list->titles[i].find(word, j) == -1){
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/in/ex2.h:70:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int k = 0; k <= user.blog_list->contents[i].size()-word.size(); k = k + word.size()){
                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex2.h:71:59: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (user.blog_list->contents[i].find(word, k) == -1){
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
# Status Time Cost Memory Cost
#1 Accepted 2ms 392.0 KiB
#2 Accepted 2ms 456.0 KiB
#3 Accepted 1ms 388.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 1ms 396.0 KiB
#6 Accepted 1ms 328.0 KiB
#7 Accepted 2ms 408.0 KiB
#8 Accepted 2ms 328.0 KiB
#9 Accepted 1ms 388.0 KiB
#10 Accepted 1ms 328.0 KiB
#11 Accepted 1ms 360.0 KiB
#12 Accepted 2ms 404.0 KiB
#13 Accepted 2ms 336.0 KiB
#14 Accepted 2ms 388.0 KiB
#15 Accepted 2ms 408.0 KiB
#16 Accepted 2ms 384.0 KiB
#17 Accepted 1ms 388.0 KiB
#18 Accepted 1ms 456.0 KiB
#19 Accepted 1ms 384.0 KiB
#20 Accepted 1ms 384.0 KiB

Information

Submit By
Type
Submission
Homework
Exercise 2
Language
C++
Submit At
2022-10-03 16:15:23
Judged At
2022-10-03 16:16:37
Judged By
Score
300
Total Time
40ms
Peak Memory
456.0 KiB