Record Detail

Time Exceeded

/in/p1.cpp: In function 'bool consecutive(unsigned int)':
/in/p1.cpp:26:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (sum == num)return true;
             ~~~~^~~~~~
/in/p1.cpp:30:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (sum == num)return true;
                 ~~~~^~~~~~
/in/p1.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             if (sum > num)break;
                 ~~~~^~~~~
/in/p1.cpp: In function 'bool repeated(unsigned int)':
/in/p1.cpp:46:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i <= str.length() / 2; i++)
                     ~~^~~~~~~~~~~~~~~~~~~
/in/p1.cpp:51:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = i; j < str.length(); j += i)
                         ~~^~~~~~~~~~~~~~
/in/p1.cpp: In function 'bool divisor(unsigned int)':
/in/p1.cpp:67:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 1; i <= num / 2; i++)
                     ~~^~~~~~~~~~
/in/p1.cpp:71:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     return sum == num;
            ~~~~^~~~~~
/in/p1.cpp: In function 'int main()':
/in/p1.cpp:103:36: warning: 'flag' may be used uninitialized in this function [-Wmaybe-uninitialized]
     cout << (flag ? "Pass" : "Fail") << endl;
                                    ^
# Status Time Cost Memory Cost
#1 Accepted 2ms 388.0 KiB
#2 Accepted 1ms 380.0 KiB
#3 Accepted 2ms 388.0 KiB
#4 Accepted 1ms 392.0 KiB
#5 Accepted 2ms 424.0 KiB
#6 Accepted 2ms 484.0 KiB
#7 Accepted 2ms 388.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Accepted 2ms 376.0 KiB
#10 Accepted 2ms 348.0 KiB
#11 Accepted 2ms 456.0 KiB
#12 Accepted 1ms 424.0 KiB
#13 Accepted 2ms 456.0 KiB
#14 Accepted 1ms 384.0 KiB
#15 Accepted 1ms 384.0 KiB
#16 Accepted 1ms 392.0 KiB
#17 Accepted 2ms 388.0 KiB
#18 Accepted 2ms 388.0 KiB
#19 Accepted 1ms 392.0 KiB
#20 Accepted 1ms 384.0 KiB
#21 Accepted 1ms 468.0 KiB
#22 Accepted 2ms 404.0 KiB
#23 Accepted 2ms 380.0 KiB
#24 Accepted 2ms 388.0 KiB
#25 Accepted 2ms 404.0 KiB
#26 Accepted 1ms 504.0 KiB
#27 Accepted 2ms 456.0 KiB
#28 Accepted 2ms 340.0 KiB
#29 Accepted 2ms 456.0 KiB
#30 Accepted 2ms 384.0 KiB
#31 Accepted 1ms 424.0 KiB
#32 Accepted 2ms 456.0 KiB
#33 Accepted 2ms 384.0 KiB
#34 Accepted 2ms 448.0 KiB
#35 Accepted 2ms 384.0 KiB
#36 Accepted 1ms 384.0 KiB
#37 Accepted 1ms 384.0 KiB
#38 Accepted 2ms 388.0 KiB
#39 Accepted 2ms 384.0 KiB
#40 Accepted 2ms 328.0 KiB
#41 Accepted 1ms 388.0 KiB
#42 Accepted 2ms 424.0 KiB
#43 Accepted 2ms 388.0 KiB
#44 Accepted 2ms 396.0 KiB
#45 Accepted 2ms 388.0 KiB
#46 Accepted 1ms 384.0 KiB
#47 Accepted 2ms 392.0 KiB
#48 Accepted 2ms 388.0 KiB
#49 Accepted 2ms 408.0 KiB
#50 Accepted 1ms 404.0 KiB
#51 Accepted 2ms 384.0 KiB
#52 Accepted 2ms 392.0 KiB
#53 Accepted 3ms 384.0 KiB
#54 Accepted 1ms 424.0 KiB
#55 Accepted 2ms 392.0 KiB
#56 Accepted 2ms 384.0 KiB
#57 Accepted 4ms 352.0 KiB
#58 Accepted 2ms 392.0 KiB
#59 Accepted 2ms 456.0 KiB
#60 Accepted 1ms 464.0 KiB
#61 Accepted 3ms 392.0 KiB
#62 Accepted 1ms 388.0 KiB
#63 Accepted 1ms 456.0 KiB
#64 Accepted 2ms 388.0 KiB
#65 Accepted 3ms 384.0 KiB
#66 Accepted 2ms 384.0 KiB
#67 Accepted 2ms 384.0 KiB
#68 Accepted 1ms 496.0 KiB
#69 Accepted 3ms 460.0 KiB
#70 Accepted 1ms 392.0 KiB
#71 Accepted 2ms 404.0 KiB
#72 Accepted 2ms 388.0 KiB
#73 Time Exceeded (-9) ≥5003ms ≥620.0 KiB
#74 Accepted 2ms 384.0 KiB
#75 Time Exceeded (-9) ≥5000ms ≥776.0 KiB
#76 Accepted 2ms 432.0 KiB
#77 Accepted 2ms 380.0 KiB
#78 Time Exceeded (-9) ≥5002ms ≥572.0 KiB
#79 Accepted 2ms 404.0 KiB
#80 Accepted 2ms 388.0 KiB

Information

Submit By
Type
Submission
Homework
Project 1
Language
C++
Submit At
2022-10-07 19:50:21
Judged At
2022-10-11 00:02:40
Judged By
Score
1155
Total Time
≥15175ms
Peak Memory
≥776.0 KiB