Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
make: Entering directory '/out/build/driver'
clang -std=gnu11 -O2 -o driver driver.c
driver successfully constructed
make: Leaving directory '/out/build/driver'
make: Entering directory '/out/build/mumsh'
clang -std=gnu11 -O2 -Wall  -o mumsh main.c
main.c:47:17: warning: implicit declaration of function 'waitpid' is invalid in C99 [-Wimplicit-function-declaration]
            if (waitpid(background[i], NULL, WNOHANG)!=0) {
                ^
main.c:425:32: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration]
            while ( (finishPid=wait(NULL))!=-1){
                               ^
main.c:447:13: warning: implicit declaration of function 'waitpid' is invalid in C99 [-Wimplicit-function-declaration]
            waitpid(sonPid, NULL, WUNTRACED);
            ^
3 warnings generated.
clang -std=gnu11 -O2 -Wall  -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer -o mumsh_memory_check main.c
main.c:47:17: warning: implicit declaration of function 'waitpid' is invalid in C99 [-Wimplicit-function-declaration]
            if (waitpid(background[i], NULL, WNOHANG)!=0) {
                ^
main.c:425:32: warning: implicit declaration of function 'wait' is invalid in C99 [-Wimplicit-function-declaration]
            while ( (finishPid=wait(NULL))!=-1){
                               ^
main.c:447:13: warning: implicit declaration of function 'waitpid' is invalid in C99 [-Wimplicit-function-declaration]
            waitpid(sonPid, NULL, WUNTRACED);
            ^
3 warnings generated.
mumsh successfully constructed
make: Leaving directory '/out/build/mumsh'
finished

clean (3/3): 
finished

all tasks finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 20ms 6.344 MiB
#2 Accepted Detail 22ms 6.285 MiB
#3 Accepted Detail 24ms 6.395 MiB
#4 Accepted Detail 18ms 6.375 MiB
#5 Accepted Detail 62ms 6.84 MiB
#6 Accepted Detail 19ms 6.5 MiB
#7 Accepted Detail 32ms 10.309 MiB
#8 Accepted Detail 68ms 15.0 MiB
#9 Accepted Detail 17ms 5.867 MiB
#10 Accepted Detail 10ms 4.48 MiB
#11 Accepted Detail 22ms 5.957 MiB
#12 Accepted Detail 82ms 6.566 MiB
#13 Accepted Detail 35ms 6.086 MiB
#14 Accepted Detail 37ms 6.445 MiB

Information

Submit By
Type
Submission
Homework
Project 1 Final Shell
Language
GNU Make
Submit At
2019-10-09 09:57:48
Judged At
2019-10-09 09:57:48
Judged By
Score
140
Total Time
474ms
Peak Memory
15.0 MiB