Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145565 张晓冉 求三个数的最大值 C++ Compile Error 0 MS 0 KB 207 2026-01-25 16:32:18

Tests(0/0):


Code:

#include<cstdio> using namespace std; int main() { int 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; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:1: error: 'cin' was not declared in this scope
 cin>>a>>b>>c;
 ^
Main.cc:7:2: error: 'cout' was not declared in this scope
  cout<<"max="<