Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124561 程诺 19买画笔 C++ Compile Error 0 MS 0 KB 316 2025-07-12 08:53:51

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[1000000]; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i]; } for(int i=1;i<=n;i++){ int x=0; for(int j=1;j<=n;j++){ if(a[i] == a[j]){ x++; } } if(x%2!=0){ cout<a[i]<<endl; break; } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:18:15: error: invalid operands of types 'int' and '' to binary 'operator<<'
    cout