[ create a new paste ] login | about

Link: http://codepad.org/RskfhdeF    [ raw code | output | fork ]

C, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
int main() { 
  int coluna;
  int matriz[20];
  int maior = -1;
  
  cout << "Informe os 10 valores para carregar o vetor\n";
  for (coluna=0;coluna<20;coluna++){
      matriz[coluna] = 0 ;
      while ( matriz[coluna] <10 || matriz[coluna] >= 100  ) {
          cout << "1 20 "<<coluna 
           <<" entre 10 e 99 inclusive \n";
          scanf("%d",&matriz[coluna]);
      };
      if (matriz[coluna] > maior) { 
        maior = matriz[coluna];
      };
  };
  cout << "O maior valor do vetor é " << maior << "\n";
    
}


Output:
In function 'main':
Line 1: error: stray '\302' in program
Line 1: error: stray '\240' in program
Line 2: error: stray '\302' in program
Line 2: error: stray '\240' in program
Line 3: error: stray '\302' in program
Line 3: error: stray '\240' in program
Line 4: error: stray '\302' in program
Line 4: error: stray '\240' in program
Line 5: error: stray '\302' in program
Line 5: error: stray '\240' in program
Line 5: error: stray '\302' in program
Line 5: error: stray '\240' in program
Line 6: error: stray '\302' in program
Line 6: error: stray '\240' in program
Line 6: error: 'cout' undeclared (first use in this function)
Line 6: error: (Each undeclared identifier is reported only once
Line 6: error: for each function it appears in.)
Line 7: error: stray '\302' in program
Line 7: error: stray '\240' in program
Line 8: error: stray '\302' in program
Line 8: error: stray '\240' in program
Line 8: error: stray '\302' in program
Line 8: error: stray '\240' in program
Line 8: error: stray '\302' in program
Line 8: error: stray '\240' in program
Line 9: error: stray '\302' in program
Line 9: error: stray '\240' in program
Line 9: error: stray '\302' in program
Line 9: error: stray '\240' in program
Line 9: error: stray '\302' in program
Line 9: error: stray '\240' in program
Line 9: error: stray '\302' in program
Line 9: error: stray '\240' in program
Line 10: error: stray '\302' in program
Line 10: error: stray '\240' in program
Line 10: error: stray '\302' in program
Line 10: error: stray '\240' in program
Line 10: error: stray '\302' in program
Line 10: error: stray '\240' in program
Line 10: error: stray '\302' in program
Line 10: error: stray '\240' in program
Line 10: error: stray '\302' in program
Line 10: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 11: error: stray '\302' in program
Line 11: error: stray '\240' in program
Line 12: error: stray '\302' in program
Line 12: error: stray '\240' in program
Line 12: error: stray '\302' in program
Line 12: error: stray '\240' in program
Line 12: error: stray '\302' in program
Line 12: error: stray '\240' in program
Line 12: error: stray '\302' in program
Line 12: error: stray '\240' in program
Line 12: error: stray '\302' in program
Line 12: error: stray '\240' in program
Line 13: error: stray '\302' in program
Line 13: error: stray '\240' in program
Line 13: error: stray '\302' in program
Line 13: error: stray '\240' in program
Line 13: error: stray '\302' in program
Line 13: error: stray '\240' in program
Line 14: error: stray '\302' in program
Line 14: error: stray '\240' in program
Line 14: error: stray '\302' in program
Line 14: error: stray '\240' in program
Line 14: error: stray '\302' in program
Line 14: error: stray '\240' in program
Line 14: error: stray '\302' in program
Line 14: error: stray '\240' in program
Line 15: error: stray '\302' in program
Line 15: error: stray '\240' in program
Line 15: error: stray '\302' in program
Line 15: error: stray '\240' in program
Line 15: error: stray '\302' in program
Line 15: error: stray '\240' in program
Line 15: error: stray '\302' in program
Line 15: error: stray '\240' in program
Line 16: error: stray '\302' in program
Line 16: error: stray '\240' in program
Line 16: error: stray '\302' in program
Line 16: error: stray '\240' in program
Line 16: error: stray '\302' in program
Line 16: error: stray '\240' in program
Line 17: error: stray '\302' in program
Line 17: error: stray '\240' in program
Line 18: error: stray '\302' in program
Line 18: error: stray '\240' in program
Line 19: error: stray '\302' in program
Line 19: error: stray '\240' in program
Line 19: error: stray '\302' in program
Line 19: error: stray '\240' in program
Line 19: error: stray '\302' in program
Line 19: error: stray '\240' in program


Create a new paste based on this one


Comments: