Can any one please tell me what’s going wrong???

`#include <bits/stdc++.h> using namespace std; #define endl ("\n") #define pi (3.141592653589) #define mod 1e9+7 #define ll long long #define rfo(i, n) for(int i = n-1; i >=0; i--) #define fo(i, n) for(int i = 0; i < n; i++) #define ifo(i, k, n) for(int i = k; i < n; i++) #define fast ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); void solve(); int main() { fast // Forget ratings, enjoy the experience int t = 1; cin >> t; while(t--) { solve(); } return 0; } // write code here void solve() { int n; cin >> n; vector<ll> a; a.resize(n); fo(i, n) { cin >> a[i]; } int p1 = 0, p2 = 0; sort(a.begin(), a.end(), greater<ll>()); fo(i, n) { if (i == 0 || (i % 2 == 1 && i != 1)) p1 += a[i]; else { p2 += a[i]; } } if (p1 > p2) cout << "first\n"; else if (p1 < p2) cout << "second\n"; else { cout << "draw\n"; } }[quote="its_naveen, post:1, topic:74594, full:true"]`