Guys UVA identify Compile error in this program plss help me out!!
#include<iostream>
using namespace std;
int main(){
int T, num, greater, i, arr[50];
int count=0;
int *p;
p=arr;
cin>>T;
try{
if(T<=50){
while(T>0){
cin>>num;
greater=0;
count++;
for(i=0; i<num; i++){
cin>>*(p+i);
if(greater<*(p+i)) greater = *(p+i);
}
cout<<"Case "<<count<<": "<<greater<<endl;
T--;
}
}
}catch(runtime_error e){
throw e;
}
return 0;
}
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/b4cf295f-d61b-4198-a80e-2cefa9acaaa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.