Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121646 王奕诺 08三个数排序 C++ Compile Error 0 MS 0 KB 335 2025-06-07 18:55:52

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,z; cin>>a>>b>>c; if(a<b){ t=b; b=a; a=t; } if(a<c){ t=b; b=c; b=t; } if(b<c){ t=a; a=c; c=t; } cout<<c<<" "<<b<<" "<<a; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:9: error: 't' was not declared in this scope
         t=b;
         ^
Main.cc:14:9: error: 't' was not declared in this scope
         t=b;
         ^
Main.cc:19:9: error: 't' was not declared in this scope
         t=a;
         ^
Main.cc:6:15: warning: unused variable 'z' [-Wunused-variable]
     int a,b,c,z;
               ^