fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(void) {
  5. // your code goes here
  6. int arr[1000];
  7. int n,ans=0;
  8. cin>>n;
  9. for(int i=0;i<n;i++)
  10. {
  11. ans=ans^arr[i];
  12. }
  13. cout<<ans<<endl;
  14. return 0;
  15. }
  16.  
Runtime error #stdin #stdout 0s 2740KB
stdin
Standard input is empty
stdout
Standard output is empty