<分区>
所以基本上,我需要得到一个输入并将其平方。由于某些原因 pow()
函数无法正常工作。
#include <stdio.h>
#include <math.h>
int main (){
int in, ans;
scans("%d", &in);
ans = pow(in, 2);
printf("answer is: %d", ans);
return 0;
}
错误是:
undefined pow or something like that