Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98706 | 黄梓皓 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 219 | 2024-11-23 13:23:10 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b; if(a>b){ c=a; a=b; b=c; cout<<a<<""<<b; } endl; else{ cout<<a<<""<<b; } return 0; }
Main.cc: In function 'int main()': Main.cc:12:7: error: statement cannot resolve address of overloaded function endl; ^ Main.cc:13:3: error: 'else' without a previous 'if' else{ ^