why code chef is showing wrong ans as my code ran in codeblocks??

#include
#include<stdio.h>
#include<stdlib.h>

using namespace std;

int main()
{
int test,n,i,count,c,min, a[100];;
scanf("%d",&test);
while(test–)
{

     i=0,count=0,n=0,c=0,min=0;
     scanf("%d",&n);
     for(i=0;i<n;i++)
     {
          scanf("%d",&a[i]);

     }
     min=a[0];
     for(i=1;i<n;i++)
     {
          if(a[i]<min)
          {
               min=a[i];
          }
          else
          {
               continue;
          }
     }
     for(i=0;i<n;i++)
     {
          if((a[i]%min)==0)
          {
               count++;
          }
          else
          {

           continue;
     }
     }
     if(count==(n))
     {
      for(i=0;i<n;i++)
      {
           printf("%d ",a[i]/min);
      }
     }
     else
     {
          for(i=0;i<n;i++)
          {
               printf("%d ",a[i]);
          }
     }
     printf("\n");
}



return 0;

}

Please provide question code while asking a question about code.

Otherwise how would we know what is the question and why are you getting WA?