실행 실패 (제출 코드 컴파일 에러)
Main.c:5:9: error: unknown type name ‘trieNode’ 5 | trieNode *next[26]; | ^~~~~~~~ Main.c: In function ‘insert’: Main.c:21:44: warning: assignment to ‘int *’ from incompatible pointer type ‘TrieNode *’ {aka ‘struct trieNode *’} [-Wincompatible-pointer-types] 21 | curr->next[idx]=createNode(); | ^ Main.c:23:21: warning: assignment to ‘TrieNode *’ {aka ‘struct trieNode *’} from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 23 | curr=curr->next[idx]; | ^ Main.c: In function ‘main’: Main.c:41:48: warning: assignment to ‘int *’ from incompatible pointer type ‘TrieNode *’ {aka ‘struct trieNode *’} [-Wincompatible-pointer-types] 41 | curr->next[idx]=createNode(); | ^ Main.c:44:29: warning: assignment to ‘TrieNode *’ {aka ‘struct trieNode *’} from incompatible pointer type ‘int *’ [-Wincompatible-pointer-types] 44 | curr=curr->next[idx]; | ^ Main.c:32:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | scanf("%s", word); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.