fake.cpp: In function ‘int main()’:
fake.cpp:4:15: error: ‘N’ was not declared in this scope
scanf("%d",&N);
^
fake.cpp:5:21: error: expected unqualified-id before ‘xor’ token
int sum=0,min=1e9,xor=0;
^
fake.cpp:10:5: error: expected primary-expression before ‘xor’ token
xor^=v;
^
fake.cpp:10:8: error: expected primary-expression before ‘^=’ token
xor^=v;
^
fake.cpp:13:6: error: expected primary-expression before ‘xor’ token
if(xor==0){
^
fake.cpp:13:9: error: expected primary-expression before ‘==’ token
if(xor==0){
^
fake.cpp:8:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v);
^