During practice, you don't submit your code at all. In a real contest there will be a separate button to upload the code. On Jun 14, 2015 3:03 PM, "Acino" <[email protected]> wrote:
> Hi, > I have just started with google code jam. > I wrote some code to solve this: > https://code.google.com/codejam/contest/351101/dashboard#s=p0 > > When I am making submission for small, I get: > Submission for input A-small Rejected: Your output should start with 'Case > #1: '. > You can learn more about rejections like this in our FAQ. > > Below is my code: > > #include<bits/stdc++.h> > using namespace std; > > int main(){ > FILE *fin = freopen("A-small-practice.in", "r", stdin); > assert( fin!=NULL ); > FILE *fout = freopen("A-small.out", "w", stdout); > int c,n,t; > cin>>t; > for(int i=0; i<t; i++) > { > cin>>c>>n; > int arr[n]; > for(int j=0; j<n; j++) > { > cin>>arr[j]; > } > int temp, found=0; > for(int a=0; a<n; a++) > { > temp=c-arr[a]; > for(int b=0; b<n; b++) > { > > if(a==b) > continue; > else{ > if(arr[b]==temp) > { > found=1; > cout<<"Case #"<<i+1<<": "<<a+1<<" "<<b+1<<endl; > break; > } > > } > } > if(found) > break; > } > } > > } > > Any help? > Thanks! > > > -- > 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/1c2fe890-0617-4ace-acf7-67f934e088f3%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAJvjBNZ%3DxHx9ZJveH0Pgq7UttDJ78oG24vVz2QwvR0NcCAfU%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
