Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
98707 | 黄梓皓 | 07交换数据II | C++ | Compile Error | 0 MS | 0 KB | 227 | 2024-11-23 13:24:42 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a; endl; cin>>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:6:7: error: statement cannot resolve address of overloaded function endl; ^