Record Detail

Accepted

/in/hw4.c: In function 'main':
/in/hw4.c:86:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(m=0;m<strlen(hexsum);m++)
                  ^
/in/hw4.c:95:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(n=0;n<strlen(hexdiff);n++)
                  ^
/in/hw4.c:9:32: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(a=0;a<=299;a++) hex1[a]='0';
                         ~~~~~~~^~~~
/in/hw4.c:9:5: note: within this loop
     for(a=0;a<=299;a++) hex1[a]='0';
     ^~~
/in/hw4.c:10:32: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(b=0;b<=299;b++) hex2[b]='0';
                         ~~~~~~~^~~~
/in/hw4.c:10:5: note: within this loop
     for(b=0;b<=299;b++) hex2[b]='0';
     ^~~
/in/hw4.c:11:34: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(c=0;c<=299;c++) hexsum[c]=0;
                         ~~~~~~~~~^~
/in/hw4.c:11:5: note: within this loop
     for(c=0;c<=299;c++) hexsum[c]=0;
     ^~~
/in/hw4.c:12:35: warning: iteration 299 invokes undefined behavior [-Waggressive-loop-optimizations]
     for(d=0;d<=299;d++) hexdiff[d]=0;
                         ~~~~~~~~~~^~
/in/hw4.c:12:5: note: within this loop
     for(d=0;d<=299;d++) hexdiff[d]=0;
     ^~~
# Status Time Cost Memory Cost
#1 Accepted Detail 10ms 336.0 KiB
#2 Accepted Detail 33ms 348.0 KiB
#3 Accepted Detail 10ms 332.0 KiB
#4 Accepted Detail 9ms 260.0 KiB
#5 Accepted Detail 9ms 328.0 KiB
#6 Accepted Detail 4ms 252.0 KiB
#7 Accepted Detail 6ms 340.0 KiB
#8 Accepted Detail 4ms 316.0 KiB
#9 Accepted Detail 9ms 336.0 KiB
#10 Accepted Detail 5ms 328.0 KiB
#11 Accepted Detail 7ms 332.0 KiB
#12 Accepted Detail 8ms 336.0 KiB
#13 Accepted Detail 8ms 344.0 KiB
#14 Accepted Detail 8ms 340.0 KiB
#15 Accepted Detail 9ms 332.0 KiB
#16 Accepted Detail 4ms 332.0 KiB
#17 Accepted Detail 9ms 336.0 KiB
#18 Accepted Detail 5ms 280.0 KiB
#19 Accepted Detail 7ms 332.0 KiB
#20 Accepted Detail 6ms 340.0 KiB

Information

Submit By
Type
Submission
Homework
HW4 - HEX Calculator
Language
C
Submit At
2022-11-03 00:28:25
Judged At
2022-11-03 09:06:18
Judged By
Score
100
Total Time
178ms
Peak Memory
348.0 KiB