Submission #2940

# Submission time Handle Problem Language Result Execution time Memory
2940 2013-08-13T10:45:45 Z imsifile 쉬운 문제 (GA3_easy) C++
Compilation error
0 ms 0 KB
#include<stdio.h>
int n,ba[55],cnt,i,j;int main(){scanf("%d",&n);for(;i<n;i++)scanf("%d",&ba[i]);for(i=0;i<n;i++){for(j=0;j<i;j++)cnt+=!(ba[i]%ba[j]);}printf("%d",cnt);return 0;}

Compilation message

easy.cpp: In function 'int main()':
easy.cpp:2:47: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
easy.cpp:2:79: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccXBPx37.o: In function `main':
easy.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccRhpkJI.o:grader.cpp:(.text.startup+0x0): first defined here
/tmp/ccRhpkJI.o: In function `main':
grader.cpp:(.text.startup+0x97): undefined reference to `CountPair(int, int*)'
collect2: ld returned 1 exit status