scanf1.cpp:1:11: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main(int a){scanf("%d",&a);printf("%d",a);}
^
scanf1.cpp:1:1: warning: ‘int main(int)’ takes only zero or two arguments [-Wmain]
main(int a){scanf("%d",&a);printf("%d",a);}
^
scanf1.cpp: In function ‘int main(int)’:
scanf1.cpp:1:26: error: ‘scanf’ was not declared in this scope
main(int a){scanf("%d",&a);printf("%d",a);}
^
scanf1.cpp:1:41: error: ‘printf’ was not declared in this scope
main(int a){scanf("%d",&a);printf("%d",a);}
^