#include <stdio.h>
#define NUMBER_OF_NUMBERS 5
void input(FILE* fp, int* p){
int i;
for( i = 0; i < NUMBER_OF_NUMBERS; i++ ){
}
}
void show(int* p){
int i;
for( i = 0; i < NUMBER_OF_NUMBERS; i++ ){
p++;
}
}
int main(int argc, char** argv) {
FILE* fp;
int numbers[NUMBER_OF_NUMBERS] = {0};
if( argc < 2 ){
return (-1);
}
if( (fp
= fopen(argv
[1],"r")) == (FILE
*)NULL
){ printf("ファイルのオープンに失敗しました: %s\n",argv
[1]); return (-1);
}
input(fp,numbers);
show(numbers);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIE5VTUJFUl9PRl9OVU1CRVJTIDUKCnZvaWQgaW5wdXQoRklMRSogZnAsIGludCogcCl7CglpbnQgaTsKCglmb3IoIGkgPSAwOyBpIDwgTlVNQkVSX09GX05VTUJFUlM7IGkrKyApewoJCWZzY2FuZihmcCwiJWQiLHArKyk7Cgl9Cn0KCnZvaWQgc2hvdyhpbnQqIHApewoJaW50IGk7Cglmb3IoIGkgPSAwOyBpIDwgTlVNQkVSX09GX05VTUJFUlM7IGkrKyApewoJCXByaW50ZigiJWRcbiIsKnApOwoJCXArKzsKCX0KfQoKCmludCBtYWluKGludCBhcmdjLCBjaGFyKiogYXJndikgewoJRklMRSogZnA7CglpbnQgbnVtYmVyc1tOVU1CRVJfT0ZfTlVNQkVSU10gPSB7MH07CgkKCWlmKCBhcmdjIDwgMiApewoJCXByaW50Zigi44OV44Kh44Kk44Or5ZCN44GM5oyH5a6a44GV44KM44Gm44GE44G+44Gb44KT44CCXG4iKTsKCQlyZXR1cm4gKC0xKTsKCX0KCQoJaWYoIChmcCA9IGZvcGVuKGFyZ3ZbMV0sInIiKSkgPT0gKEZJTEUqKU5VTEwgKXsKCQlwcmludGYoIuODleOCoeOCpOODq+OBruOCquODvOODl+ODs+OBq+WkseaVl+OBl+OBvuOBl+OBnzogJXNcbiIsYXJndlsxXSk7CgkJcmV0dXJuICgtMSk7Cgl9CgoJaW5wdXQoZnAsbnVtYmVycyk7CglzaG93KG51bWJlcnMpOwoKCWZjbG9zZShmcCk7CQoKCXJldHVybiAwOwp9Cg==