0
#include<stdio.h>
int main(){
int i,jog,rod,placar[500],ponto=0,p,maxPonto=0,vencedor=0,rodCopia;
  scanf("%d %d",&jog,&rod);
  rodCopia = rod;
  for(i=1;i<=jog;i++){
          scanf("%d",&p);
          placar[i]+=p;
       if(i==jog && rod>0){
         rod-=1;
         i = 0;
       }
  }
       for(i=1;i<=rodCopia;i++){
         if(maxPonto < placar[i]){
           maxPonto = placar[i];
           vencedor = i;
         }
       }
     printf(vencedor); 
    return 0;
    }
The last
printfis supposed to beprintf("%d",vencedor);. What input data are you using ? What should the program do that doesn’t ?– Isac
Can provide an input example?
– Jefferson Quesado