Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68867 李老师 比较大小 C++ Compile Error 0 MS 0 KB 207 2024-03-27 14:21:58

Tests(0/0):


Code:

#include<iostream> using namespace std; void jh(int *a,*b){ int tmp=*a; *a=*b; *b=tmp; } int main(){ int n,m,t; cin>>n>>m; jh(&n,&m); cout<<n<<' '<<m; return 0; }


Run Info:

Main.cc:3:16: error: expected identifier before '*' token
 void jh(int *a,*b){
                ^
Main.cc: In function 'int main()':
Main.cc:9:13: warning: unused variable 't' [-Wunused-variable]
     int n,m,t;
             ^