#include <stdio.h>
main()
{
printf("入力してください。\n");
int a;
scanf("%d",&a);
}
int a;のところでコンパイルエラーが出るんですが、なぜですか?
でもprintfのある行より前にint a;と書くとうまくいくのですが。