Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
105931 | 张智博 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 225 | 2025-01-14 22:29:39 |
#include <bits/stdc++.h> using namespace std; int main() { int a,b,c=0; cin>>a>>b; if(a>b) c=a; a=b; b=c; cout<<a<<" "<<b; else cout<<a<<" "<<b; return 0; }
Main.cc: In function 'int main()': Main.cc:12:5: error: 'else' without a previous 'if' else ^