0_0_33548605_14398.cpp: In function 'int main()': 0_0_33548605_14398.cpp:35:17: error: 'j' was not declared in this scope for(j=0;j<4;j++)scanf("%d",&ans[s][cnt[s]][j]); ^