Record Detail

Compile Error

prepare (1/3): 
finished

make (2/3): 
clang -std=gnu11 -O2 -Wall -Wextra -Werror -pedantic -Wno-unused-result -Wconversion -Wvla -o l5 *.c
clang -std=gnu11 -O2 -Wall -Wextra -Werror -pedantic -Wno-unused-result -Wconversion -Wvla -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fsanitize=integer -o l5_memory_check *.c
lab5_dlist.clab5_dlist.c:194:13: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration]
            printf("%s=%d\n",na->key,na->val.intValue);
            ^
lab5_dlist.c:194:13: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
:194:13: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration]
1 error generated.
            printf("%s=%d\n",na->key,na->val.intValue);
            ^
lab5_dlist.c:194:13: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
1 error generated.
Makefile:13: recipe for target 'l5' failed
make: *** [l5] Error 1
make: *** Waiting for unfinished jobs....
Makefile:16: recipe for target 'l5_memory_check' failed
make: *** [l5_memory_check] Error 1

build failed

Information

Submit By
Type
Submission
Homework
Lab5 Ex2
Language
GNU Make
Submit At
2022-11-01 23:34:21
Judged At
2022-11-01 23:34:21
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes