실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘insert’: Main.c:15:36: error: lvalue required as left operand of assignment 15 | if(!(strlen((*head)->data) = strlen(c) && strcmp((*head)->data, c)<0)){ | ^ Main.c:24:42: error: lvalue required as left operand of assignment 24 | if(!(strlen(tmp->next->data) = strlen(c) && strcmp(tmp->next->data, c)<0)){ | ^ Main.c: In function ‘main’: Main.c:37:11: warning: unused variable ‘n’ [-Wunused-variable] 37 | int N,n; | ^ Main.c: In function ‘insert’: Main.c:11:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | scanf("%s",c); | ^~~~~~~~~~~~~ Main.c: In function ‘main’: Main.c:38:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 38 | scanf("%d",&N); | ^~~~~~~~~~~~~~ Main.c:40:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 40 | scanf("%s",c); | ^~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.