[ create a new paste ] login | about

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

C, pasted on Apr 15:
1
2
3
4
5
6
7
8
#include <stdio.h>

main(){
int vetor[20], i, maior = 0;

for(i=0;i<20;i++){
printf (&quot;\n Informe o valor da posicao %d do vetor: &quot;, i+1);
scanf(&quot;%d&quot;, &vetor[i]);


Output:
1
2
3
4
5
6
7
8
9
In function 'main':
Line 7: error: 'quot' undeclared (first use in this function)
Line 7: error: (Each undeclared identifier is reported only once
Line 7: error: for each function it appears in.)
Line 7: error: expected ')' before ';' token
Line 7: error: stray '\' in program
Line 8: error: expected ')' before ';' token
Line 8: error: expected declaration or statement at end of input
Line 8: error: expected declaration or statement at end of input


Create a new paste based on this one


Comments: