N-Restaurants 20/100

with this code I get only 20 points. please help me get 100 points.

#include <iostream>
using namespace std;
int main()
{
    long long suma=0;
    int n;
    int v[101],s[101];
    cin>>n;
    for(int j=1;j<=n;++j)
        {
            suma=0;
            for(int i=1;i<=n+1;++i)
                {
                    cin>>v[i];
                    if(v[i]!=-1)
                       suma+=v[i];
                }
            s[j]=suma;
        }
    cout<<1<<endl;
    int maxi=s[1];
    for(int i=1;i<=n;++i)
    {
        if(s[i]>maxi)
            maxi=s[i];
    }
    for(int i=2;i<=n;++i)
    {
        for(int j=1;j<=i;++j)
            if(s[j]==maxi)
            cout<<j<<endl;
    }
    return 0;
}

Hint: the part where you output stuff is bugged, for example test your program with this input:

3
-1 1 1 1
2 -1 2 2
3 3 -1 3

the correct output should be 1 2 3, but your program only outputs 1 3

Thank you very much for your help. Now he gave me 100 points.