[ create a new paste ] login | about

Link: http://codepad.org/TWymtdGW    [ 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
#include <stdio.h> main() { 
int vetor[20], i, maior = 0\u37e 
for (i=0\u37e i<20\u37e i++)
{printf(&quot;\nInforme o valor da posicao %d do vetor: &quot;,i+1)\u37e  
scanf(&quot;%d&quot;, &vetor[i])\u37e
if ((vetor[i] <10) || (vetor[i] >= 100)) { 
printf(\u201c\nValor Invalido para a posicao %d !\n&quot;,i+1)\u37e   
i­­\u37e } 
else 
{
if (vetor[i] >maior) { 
maior = vetor[i]\u37e } 
} }
printf(&quot;\nVetor digitado:&quot;)\u37e for(i=0\u37ei<20\u37ei++) {   
printf(&quot;\nvetor[%d]:%d&quot;,i,vetor[i])\u37e } 
printf(&quot;\n\nMaior valor digitado: %d&quot;, maior)\u37e } 


Output:
Line 19: warning: extra tokens at end of #include directive
Line 2: error: stray '\' in program
Line 2: error: expected ',' or ';' before 'u37e'
Line 3: error: stray '\' in program
Line 3: error: stray '\' in program
Line 4: error: stray '\' in program
Line 4: error: stray '\' in program
Line 5: error: stray '\' in program
Line 7: error: stray '\' in program
Line 7: error: stray '\' in program
Line 7: error: stray '\' in program
Line 7: error: stray '\' in program
Line 8: error: stray '\302' in program
Line 8: error: stray '\255' in program
Line 8: error: stray '\302' in program
Line 8: error: stray '\255' in program
Line 8: error: stray '\' in program
Line 12: error: stray '\' in program
Line 14: error: expected declaration specifiers or '...' before '&' token
Line 14: error: stray '\' in program
Line 14: error: expected declaration specifiers or '...' before 'nVetor'
Line 14: error: stray '\' in program
In function 'printf':
Line 14: error: expected declaration specifiers before 'u37e'
Line 14: error: stray '\' in program
Line 14: error: stray '\' in program
Line 15: error: stray '\' in program
Line 15: error: stray '\' in program
Line 16: error: expected declaration specifiers before 'printf'
Line 16: error: stray '\' in program
Line 16: error: expected declaration specifiers before 'n'
Line 16: error: stray '\' in program
Line 16: error: expected declaration specifiers before ',' token
Line 16: error: stray '\' in program
Line 16: error: number of arguments doesn't match prototype
Line 297: error: prototype declaration
Line 16: error: expected '{' at end of input


Create a new paste based on this one


Comments: