Main.cc: In function ‘int main()’:
Main.cc:8:5: error: ‘inr’ was not declared in this scope
inr a[1000]
^~~
Main.cc:8:5: note: suggested alternative: ‘int’
inr a[1000]
^~~
int
Main.cc:10:12: error: expected primary-expression before ‘%’ token
scanf (%d,&k);
^
Main.cc:10:13: error: ‘d’ was not declared in this scope
scanf (%d,&k);
^
Main.cc:12:22: error: ‘a’ was not declared in this scope
scanf ("%d",&a[i]);
^