Record Detail

Compile Error

/in/ex2.c: In function 'main':
/in/ex2.c:11:37: error: format '%lld' expects argument of type 'long long int *', but argument 2 has type 'long int *' [-Werror=format=]
     for (int i=0;i<n;i++) scanf("%lld",&a[i]);
                                  ~~~^  ~~~~~
                                  %ld
/in/ex2.c:12:37: error: format '%lld' expects argument of type 'long long int *', but argument 2 has type 'long int *' [-Werror=format=]
     for (int i=0;i<n;i++) scanf("%lld",&b[i]);
                                  ~~~^  ~~~~~
                                  %ld
cc1: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Mid2 Sample Exam
Language
C
Submit At
2020-07-12 22:23:27
Judged At
2020-07-15 20:58:15
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes