Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137395 刘柠锐 07交换数据II C++ Compile Error 0 MS 0 KB 133 2025-11-17 16:28:12

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ cin>>a; cin>>b; if(a>b)cout<<a,b; } else{cout<<b,a; } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:10: error: 'a' was not declared in this scope
     cin>>a;
          ^
Main.cc:5:10: error: 'b' was not declared in this scope
     cin>>b;
          ^
Main.cc: At global scope:
Main.cc:7:3: error: expected unqualified-id before 'else'
 } else{cout<