TOPIC

Sugestões?

irllambs asked 3 years ago

Sugestões para resover o runtime

Question solved. Code removed.

This topic was solved and cannot recieve new replies.

  • feodorv replied 3 years ago

      int qtd;
      int lesma[qtd] ;
      while(cin>>qtd){

    You can't declare array lesma because you do not know it's size yet. You can fix it by

      int qtd;
      while(cin>>qtd){
        int lesma[qtd] ;

    or by

      int qtd;
      int lesma[500] ;
      while(cin>>qtd){