오잉? 코드블록으론 실행되는데 왜 컴파일에러가..

YooJaeHyo Reply 9 years 24 weeks ago
왜뜨는거죠
blacksianj Reply 9 years 24 weeks ago
이미 accept가 된거 같긴한데 Main.c:5:12: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token Main.c:6:1: warning: useless storage class specifier in empty declaration [enabled by default] Main.c:7:16: error: unknown type name 'W' Main.c:22:1: error: unknown type name 'W' Main.c: In function 'main': Main.c:24:1: warning: suggest parentheses around assignment used as truth value [-Wparentheses] Main.c:29:13: error: request for member 'word' in something not a structure or union Main.c:30:39: error: request for member 'word' in something not a structure or union Main.c:30:49: error: request for member 'word' in something not a structure or union Main.c:30:66: error: request for member 'num' in something not a structure or union Main.c:31:23: error: request for member 'num' in something not a structure or union Main.c:31:27: warning: left-hand operand of comma expression has no effect [-Wunused-value] Main.c:38:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] Main.c:40:14: error: request for member 'word' in something not a structure or union Main.c:42:1: warning: implicit declaration of function 'shellsort' [-Wimplicit-function-declaration] Main.c:44:26: error: request for member 'word' in something not a structure or union Main.c:44:36: error: request for member 'num' in something not a structure or union 라는 에러들이 뜨네요
YooJaeHyo Reply 9 years 24 weeks ago
개인적 호기심으로 구조체를 이용해 풀어본거라서요..ㅋㅋㅋ 음 그니저나 typedef를 햇는데 unknown이라니...ㅠ