Record Detail

Accepted

/in/ex2.c: In function 'ex2':
/in/ex2.c:7:5: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
     gets(re);
     ^~~~
/in/ex2.c:119:5: warning: 'montho' may be used uninitialized in this function [-Wmaybe-uninitialized]
     printf("%s\nSun Mon Tue Wed Thu Fri Sat\n",montho);
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/in/ex2.c:77:25: warning: 'total' may be used uninitialized in this function [-Wmaybe-uninitialized]
         middle = (total - (8 - fstd))/7;
                  ~~~~~~~^~~~~~~~~~~~~
/tmp/ccJk8VTl.o: In function `ex2':
ex2.c:(.text+0x16): warning: the `gets' function is dangerous and should not be used.
# Status Time Cost Memory Cost
#1 Accepted 1ms 332.0 KiB
#2 Accepted 0ms 332.0 KiB
#3 Accepted 1ms 204.0 KiB
#4 Accepted 0ms 200.0 KiB
#5 Accepted 0ms 204.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 0ms 332.0 KiB
#8 Accepted 0ms 288.0 KiB
#9 Accepted 0ms 272.0 KiB
#10 Accepted 0ms 340.0 KiB
#11 Accepted 0ms 332.0 KiB
#12 Accepted 1ms 340.0 KiB

Information

Submit By
Type
Submission
Homework
Assignment 5
Language
C
Submit At
2018-06-27 08:22:37
Judged At
2018-06-27 08:22:37
Judged By
Score
120
Total Time
11ms
Peak Memory
340.0 KiB