#include <stdio.h>
int main() {
printf("Hello World!") // 缺少分號
}
error: expected ';' before '}' token
#include <stdio.h>
int main() {
printf("Hello World!"); // 添加分號
return 0; // 建議顯式返回
}
C 語言中**每個語句必須以分號結束**,複合語句 ({...}) 內的最後一條語句也需要分號。