I am trying to solve the AdvertisingAgency problem from TopCoder. When I submit this code aand run system tests it shows that the program failed system tests. Hovewer when I run tests from the Test Panel it passess all of them. Do you have any idea on where the problem is?
Source code:
#include<iostream>
#include<vector>
using namespace std;
class AdvertisingAgency{
public:
    int numberOfRejections(vector<int>requests){
        int rejections=0;
        bool billboards[100];
        for(int request:requests){
            if(billboards[request]){
                rejections++;
            }
            else{
                billboards[request]=true;
            }
        }
        return rejections;
    }
};
 
    