prog.c: In function ‘main’:
prog.c:35:13: error: subscripted value is neither array nor pointer nor vector
Memo[arr[i]];
^
prog.c:25:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d",&T);
^~~~~~~~~~~~~~~
prog.c:30:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&arr[i]);
^~~~~~~~~~~~~~~~~~~