Submission #3026

#TimeUsernameProblemLanguageResultExecution timeMemory
3026movie_jo쉬운 문제 (GA3_easy)C11
Compilation error
0 ms0 KiB
#include<stdio.h> int main(void) { int A[50],N,i,j,S=0; scanf("%d",&N); for(i=0;i<N;i++) scanf("%d",A+i); for(i=0;i<N;i++) { for(j=i+1;j<N;j++) { if(A[j]%A[i]==0) S++; } } printf("%d",S); return 0; }

Compilation message (stderr)

easy.c: In function 'main':
easy.c:7:7: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
easy.c:10:8: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccWhxVOU.o: In function `main':
easy.c:(.text.startup+0x0): multiple definition of `main'
/tmp/cctkrW8Y.o:grader.c:(.text.startup+0x0): first defined here
/tmp/cctkrW8Y.o: In function `main':
grader.c:(.text.startup+0x97): undefined reference to `CountPair'
collect2: ld returned 1 exit status