Submission #3269092


Source Code Expand

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a[1000000001];
int main(){
    int n,ans=0;
    cin >> n;
    ll x;
    for(int i = 0;i<n;i++){
        cin >> x;
        a[x-1]++;
        if(a[x-1] == 2){
            ans--;
        }
        else ans++;
    }
    cout<<ans;
}

Submission Info

Submission Time
Task C - Write and Erase
User kenzo1122
Language C++14 (GCC 5.4.1)
Score 0
Code Size 317 Byte
Status CE

Compile Error

/tmp/cciKQhAs.o: In function `_GLOBAL__sub_I_a':
Main.cpp:(.text.startup+0x95): relocation truncated to fit: R_X86_64_32 against `.bss'
Main.cpp:(.text.startup+0xa4): relocation truncated to fit: R_X86_64_32 against `.bss'
collect2: error: ld returned 1 exit status