• Asked to answer
    + 1 comment

    Will you send your code so that I may find the bug? Does your code pass all test cases except testcase#3 ?

    Here is my code hope it may help you out.

    int main() { int t; cin>>t; while(t--) { unsigned long n,a=0; cin>>n; unsigned long arr[n]; for(unsigned long i= 0 ; i< n ; i++) cin>>arr[i]; if(n%2==0) cout<<'0'<