Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
93156 | 王珠潏 | 求三个数的最大值 | C++ | Compile Error | 0 MS | 0 KB | 263 | 2024-10-11 20:07:46 |
#include<iostream> #include<cstdio> using namespace std; int main() { i nt a,b,c; cin>>a>>b>>c; if (a>b && a>c){ cout<<"max="<<a; } else if(b>a && b>c){ cout<<"max="<<b; } else{ cout<<"max="<<c; } return 0; }
Main.cc: In function 'int main()': Main.cc:7:14: error: 'i' was not declared in this scope int main() { i ^ Main.cc:11:6: error: 'a' was not declared in this scope cin>>a>>b>>c; ^ Main.cc:11:9: error: 'b' was not declared in this scope cin>>a>>b>>c; ^ Main.cc:11:12: error: 'c' was not declared in this scope cin>>a>>b>>c; ^