Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65183 欧阳槊远 05交换数据 C++ Compile Error 0 MS 0 KB 146 2024-01-24 11:44:39

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a,b; int a=c; a=b; b=c; cout<<a<<" "<<b; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:10: warning: right operand of comma operator has no effect [-Wunused-value]
  cin>>a,b;
          ^
Main.cc:8:6: error: redeclaration of 'int a'
  int a=c;
      ^
Main.cc:6:6: note: 'int a' previously declared here
  int a,b;
      ^
Main.cc:8:8: error: 'c' was not declared in this scope
  int a=c;
        ^