SIGSEGV runtime error

look this code, why its getting this error, Problem Code:BEGGASOL. This is annoying.
The memory i used is showing 9.28 kb, which is far less than max. 50 kb.
i dont why this error.

#include <stdio.h>

int main(){
int t=0;
int n=0;
int s=0;
int temp=0;
scanf(’%d’,&t);
for(int a=0;a<t;a++){
n=0;
scanf("%d",&n);
s=0;
temp=0;
for(int b=0;b<n;b++){
temp=0;
scanf("%d",&temp);
s=s+temp;
}
printf("%d\n",s);

}
return 0;

}