prog.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main() {
^~~~
prog.c: In function ‘main’:
prog.c:14:26: error: ‘J’ undeclared (first use in this function)
for (j=i+1; j< size; J++){
^
prog.c:14:26: note: each undeclared identifier is reported only once for each function it appears in
prog.c:15:11: error: ‘a’ undeclared (first use in this function)
if (a[i] == a[j]){
^
prog.c:3:23: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
int arr[20], i, j, k, size;
^