| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160970 | 袁昊贝 | 判断三角形形状 | C++ | Compile Error | 0 MS | 0 KB | 369 | 2026-09-26 17:33:27 |
#include <bits/stdc++.h> using namespace std; int main(){ int T; cin>>T; while(T--){ if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){ cout<<"good"<<endl; } if (a==b || a==c || b==c){ cout<<"perfect"<<endl; } else{ cout<<"jast a triangle"<<endl; } } }
Main.cc: In function 'int main()':
Main.cc:7:13: error: 'a' was not declared in this scope
if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
^
Main.cc:7:17: error: 'b' was not declared in this scope
if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
^
Main.cc:7:22: error: 'c' was not declared in this scope
if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
^
Main.cc:10:13: error: 'a' was not declared in this scope
if (a==b || a==c || b==c){
^
Main.cc:10:16: error: 'b' was not declared in this scope
if (a==b || a==c || b==c){
^
Main.cc:10:24: error: 'c' was not declared in this scope
if (a==b || a==c || b==c){
^