[ create a new paste ] login | about

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

C, pasted on Aug 10:
1
2
3
4
5
6
7
#include<stdio.h>
main()
{
char line[80]
scanf("%[^\n]",line);
printf("%s",line);
}


Output:
1
2
3
4
5
In function 'main':
Line 5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
Line 5: error: 'line' undeclared (first use in this function)
Line 5: error: (Each undeclared identifier is reported only once
Line 5: error: for each function it appears in.)


Create a new paste based on this one


Comments: