What is wrong in the code written below i am getting compile-time Error…
#include
using namespace std;
int main() {
int arr[100];
cin>>“Enter the Size of the Arrar:”;
cin>>n;
for(i=0;i<n;i++){
cin>>arr[i];
}
int max=0;
for(i=0;i<n:i++){
if(max < a[i]){
max = a[i];
}
}
cout<<"Maximum Value in Array is:"<<max;
return 0;
}