00a52 정수 2개를 라인 단위로 입력받아 덧셈하기 / 김준섭 | |||||||||||||||||||||||
|
컴파일 결과 |
---|
2:6: warning: return type of 'main' is not 'int' [-Wmain] | |
In function 'main': | |
7:11: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'char *' [-Wformat=] | |
8:5: warning: implicit declaration of function 'scnaf' [-Wimplicit-function-declaration] | |
7:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] | |
In function `main': | |
(.text.startup+0x22): undefined reference to `scnaf' | |
error: ld returned 1 exit status | |
소스 정적 분석 결과 |
---|
7: (warning) %d in format string (no. 1) requires 'int *' but the argument type is 'signed char *'. |