lang.cpp: In function 'int main()':
lang.cpp:22:11: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.txt","r",stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
lang.cpp:30:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i=0;i<N;i++) scanf("%d,",&uni[i]);
~~~~~^~~~~~~~~~~~~~~
lang.cpp:31:12: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%*[^\n]");
~~~~~^~~~~~~~~~~
lang.cpp: At global scope:
lang.cpp:12:22: warning: 'k' defined but not used [-Wunused-variable]
static int lnum, i,j,k,n,nl, uni[N], right, tot;
^
lang.cpp:12:20: warning: 'j' defined but not used [-Wunused-variable]
static int lnum, i,j,k,n,nl, uni[N], right, tot;
^
/tmp/cc6XgB4S.o: In function `language(int)':
grader.c:(.text+0x0): multiple definition of `language(int)'
/tmp/ccCnix4M.o:lang.cpp:(.text+0x0): first defined here
/tmp/cc6XgB4S.o: In function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'
/tmp/ccCnix4M.o:lang.cpp:(.text.startup+0x0): first defined here
/tmp/ccCnix4M.o: In function `main':
lang.cpp:(.text.startup+0xec): undefined reference to `excerpt(int*)'
/tmp/cc6XgB4S.o: In function `main':
grader.c:(.text.startup+0xf5): undefined reference to `excerpt(int*)'
collect2: error: ld returned 1 exit status