编写出错,求教
#include <iostream>using namespace std;
int main()
{
char a
scanf("%c",&a,)
printf(" %c\n %c%c%c\n%c%c%c%c%c%c\n %c%c%c\n %c",a,a,a,a,a,a,a,a,a,a,a,a,a,a);
return 0;
}
编程出错信息
/home/runner/temp/6522537.311192/Main.cc: In function ‘int main()’:
/home/runner/temp/6522537.311192/Main.cc:6:2: error: expected initializer before ‘scanf’
scanf("%c",&a,)
^