Record Detail

Accepted

prepare (1/3): 
finished

make (2/3): 
make: Entering directory '/out/build/driver'
clang -std=c11 -O2 -o driver main.c
driver successfully constructed
make: Leaving directory '/out/build/driver'
make: Entering directory '/out/build/mumsh'
clang  -o mumsh myshell.c
myshell.c:23:9: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
        memset(cmd,0,1024);
        ^
myshell.c:23:9: note: include the header <string.h> or explicitly provide a declaration for 'memset'
myshell.c:27:13: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
        if(!strcmp("exit\n",cmd)){printf("exit");break;}
            ^
myshell.c:27:13: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
myshell.c:47:18: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
    int length = strlen(cmd)-1;
                 ^
myshell.c:47:18: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
myshell.c:127:19: warning: implicitly declaring library function 'strtok' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
    char *token = strtok(cmd," ");
                  ^
myshell.c:127:19: note: include the header <string.h> or explicitly provide a declaration for 'strtok'
myshell.c:236:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
5 warnings generated.
clang  -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer -o mumsh_memory_check myshell.c
myshell.c:23:9: warning: implicitly declaring library function 'memset' with type 'void *(void *, int, unsigned long)' [-Wimplicit-function-declaration]
        memset(cmd,0,1024);
        ^
myshell.c:23:9: note: include the header <string.h> or explicitly provide a declaration for 'memset'
myshell.c:27:13: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
        if(!strcmp("exit\n",cmd)){printf("exit");break;}
            ^
myshell.c:27:13: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
myshell.c:47:18: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
    int length = strlen(cmd)-1;
                 ^
myshell.c:47:18: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
myshell.c:127:19: warning: implicitly declaring library function 'strtok' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
    char *token = strtok(cmd," ");
                  ^
myshell.c:127:19: note: include the header <string.h> or explicitly provide a declaration for 'strtok'
myshell.c:236:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
5 warnings generated.
mumsh successfully constructed
make: Leaving directory '/out/build/mumsh'
finished

clean (3/3): 
finished

all task finished, build successfully
# Status Time Cost Memory Cost
#1 Accepted Detail 1ms 380.0 KiB
#2 Accepted Detail 2ms 508.0 KiB
#3 Accepted Detail 2ms 412.0 KiB
#4 Accepted Detail 5ms 916.0 KiB
#5 Accepted Detail 2ms 524.0 KiB
#6 Accepted Detail 2ms 556.0 KiB
#7 Accepted Detail 5ms 856.0 KiB
#8 Accepted Detail 5ms 916.0 KiB
#9 Accepted Detail 4ms 856.0 KiB
#10 Accepted Detail 4ms 828.0 KiB
#11 Accepted Detail 4ms 936.0 KiB
#12 Accepted Detail 5ms 792.0 KiB
#13 Accepted Detail 5ms 936.0 KiB
#14 Accepted Detail 5ms 988.0 KiB
#15 Accepted Detail 8ms 1.0 MiB
#16 Accepted Detail 8ms 1.148 MiB
#17 Accepted Detail 8ms 1.176 MiB
#18 Accepted Detail 8ms 960.0 KiB

Information

Submit By
Type
Submission
Homework
Project 1 Stage 1
Language
GNU Make
Submit At
2018-09-26 01:06:34
Judged At
2018-09-26 01:06:34
Judged By
Score
180
Total Time
91ms
Peak Memory
1.176 MiB