I'm sorry @Salem. I need help because im a newbie to c programming i ussualy works with HTML, css and javascript.
I have an another question :
Code:
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main(){
int A[1000000000],B[1000000000];
int E,D;
int i,j,c;
int CaseNum,jawaban,answer;
scanf("%d",&CaseNum);
for(int i=0;i<=CaseNum;i++)
{
scanf("%d", &c);
for(int j=0;j<c;j++)
{
jawaban = 0;
for(j=0;j<c;j++)scanf("%lld", &A[j]);
for(j=0;j<c;j++)scanf("%lld", &B[j]);
for(int j=0;j<c;j++) answer[j]=A[j]*B[j];
}
for(j=0;j<c;j++) jawaban = jawaban;
printf("Case #%d: %lld\n",i,j);
}
return 0;
}
I have a problem with the output that says :
and the program complains about invalid int[int] for array subscription that refers to this line of code :
Code:
for(int j=0;j<c;j++) answer[j]=A[j]*B[j];
can you solve it ?