eraser.cpp: In function ‘int main()’:
eraser.cpp:19:16: error: expected primary-expression before ‘long’
a[i]=A(long long int)[i];
^
eraser.cpp:19:29: error: ‘A’ cannot be used as a function
a[i]=A(long long int)[i];
^
eraser.cpp:10:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
eraser.cpp:12:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&A[i]);
^