jiandan
2024-08-20 16:14:28
发布于:上海
96阅读
0回复
0点赞
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(){
int a,b;
cin >> a >> b;
printf("%.2f",sqrt(a*a+b*b));
return 0;
}
全部评论 2
编译错误: /code/judger/test/1825447359227654144/main.cpp: In function 'int main()':
/code/judger/test/1825447359227654144/main.cpp:8:24: error: 'aa' was not declared in this scope
printf("%.2f",sqrt(aa+bb));
^~
/code/judger/test/1825447359227654144/main.cpp:8:24: note: suggested alternative: 'a'
printf("%.2f",sqrt(aa+bb));
^~
a
/code/judger/test/1825447359227654144/main.cpp:8:27: error: 'bb' was not declared in this scope
printf("%.2f",sqrt(aa+bb));
^~
/code/judger/test/1825447359227654144/main.cpp:8:27: note: suggested alternative: 'b'
printf("%.2f",sqrt(aa+bb));
^~2024-08-19 来自 天津
0你好:7374447616/main11.cpp:8:23: note: suggested alternative: 'b'
printf("%.2f",sqrt(aa+bb));
^~
b2024-01-31 来自 浙江
0
有帮助,赞一个