실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘fibo’: Main.c:9:6: error: stray ‘#’ in program 9 | }#include <stdio.h> | ^ Main.c:9:7: error: ‘include’ undeclared (first use in this function) 9 | }#include <stdio.h> | ^~~~~~~ Main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:16: error: ‘stdio’ undeclared (first use in this function); did you mean ‘stdin’? 9 | }#include <stdio.h> | ^~~~~ | stdin Main.c:10:1: error: expected expression before ‘long’ 10 | long long dp[1001]; | ^~~~ Main.c: In function ‘fibo’: Main.c:18:8: error: ‘dp’ undeclared (first use in this function); did you mean ‘DP’? 18 | if(dp[n]==-1){ | ^~ | DP Main.c: In function ‘fibo’: Main.c:24:5: warning: ‘main’ is normally a non-static function [-Wmain] 24 | int main() { | ^~~~ Main.c: In function ‘main’: Main.c:27:9: error: ‘dp’ undeclared (first use in this function); did you mean ‘DP’? 27 | dp[i]=-1; | ^~ | DP Main.c: In function ‘fibo’: Main.c:22:1: warning: control reaches end of non-void function [-Wreturn-type] 22 | } | ^ Main.c: In function ‘main’: Main.c:50:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 50 | scanf("%d",&n); | ^~~~~~~~~~~~~~ At top level: Main.c:24:5: warning: ‘main’ defined but not used [-Wunused-function] 24 | int main() { | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.