LECANDY - Editorial

I’m new to codechef. Here’s my solution. Can someone give some feedback regarding this solution?

#include <iostream>
#include <vector>
#include <string>

using namespace std;

int main() {
    int T, N;
    unsigned long int C, C2, temp;
    cin >> T;
    vector<string> arr(T);

    for(int i=0; i < T; i++){
        cin >> N >> C;
        C2 = 0;
        for (int j=0; j < N; j++){
            cin >> temp;
            C2 += temp;
        }
        if (C2 > C)
            arr[i] = "No";
        else
            arr[i] = "Yes";
    }

    for(auto& i: arr)
        cout << i << endl;

    return 0;
}

i think you need to take STL , it will work better