#2175. C++-编译-scanf中,赋值对象忘记加&(取地址符)
C++-编译-scanf中,赋值对象忘记加&(取地址符)
Background
Description
scanf中,赋值对象忘记加&(取地址符)
int a;
scanf("%d",a); //错误的
scanf("%d,&a); //改正后
Format
Input
Output
Samples
Limitation
1s, 1024KiB for each test case.
int a;
scanf("%d",a); //错误的
scanf("%d,&a); //改正后
1s, 1024KiB for each test case.
By signing up a PaiBlockly编程创客平台图形模块编程软件系统 universal account, you can submit code and join discussions in all online judging services provided by us.