#include <stdio.h>
int input( int a[ ] , int max_n)
{
int i, n;
if ( n> max_n)
n= max_n;
for ( i= 0 ; i< n;++ i)
return n;
}
void print( int a[ ] , int n)
{
int i;
for ( i= 0 ; i< n;++ i)
}
int copy_except( int dst[ ] , int src[ ] ,
int n, int v)
{
int i, j;
for ( i= 0 ; i< n;++ i)
if ( src[ i] != v)
dst[ i] = src[ i] ;
return j;
}
int main( void )
{
int a[ 100 ] ;
int b[ 100 ] ;
int n, max_n= 100 ;
int v= 99 ;
n1= input( a, max_n) ;
n2= copy_except( b, a, n1, v) ;
print( b, n) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiAKaW50IGlucHV0KGludCBhW10sIGludCBtYXhfbikKewoJaW50IGksbjsKIAoJc2NhbmYoIiVkIiwgJm4pOwoJaWYobj5tYXhfbikKCQluPW1heF9uOwoJZm9yKGk9MDtpPG47KytpKQoJCXNjYW5mKCIlZCIsICZhW2ldKTsKCXJldHVybiBuOwp9CiAKdm9pZCBwcmludChpbnQgYVtdLCBpbnQgbikKewoJaW50IGk7CiAKCWZvcihpPTA7aTxuOysraSkKCQlwcmludGYoIiVkICIsIGFbaV0pOwoJcHJpbnRmKCJcbiIpOwkKfQogCmludCBjb3B5X2V4Y2VwdChpbnQgZHN0W10saW50IHNyY1tdLAoJCQkJaW50IG4saW50IHYpCnsKCWludCBpLGo7CgkKCWZvcihpPTA7aTxuOysraSkKCQlpZihzcmNbaV0hPXYpCgkJCWRzdFtpXT1zcmNbaV07CglyZXR1cm4gajsJCn0KIAogCmludCBtYWluKHZvaWQpCnsKCWludCBhWzEwMF07CglpbnQgYlsxMDBdOwoJaW50IG4sbWF4X249MTAwOwoJaW50IHY9OTk7CgkKCW4xPWlucHV0KGEsbWF4X24pOwoJbjI9Y29weV9leGNlcHQoYixhLG4xLHYpOwoJcHJpbnQoYixuKTsKCXJldHVybiAwOwp9Cg==
compilation info
prog.c: In function 'main':
prog.c:43:2: error: 'n1' undeclared (first use in this function)
n1=input(a,max_n);
^
prog.c:43:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:44:2: error: 'n2' undeclared (first use in this function)
n2=copy_except(b,a,n1,v);
^
stdout