Submission #2939

#TimeUsernameProblemLanguageResultExecution timeMemory
2939imsifile쉬운 문제 (GA3_easy)C++98
Compilation error
0 ms0 KiB
#include<stdio.h> int n,ba[55],cnt,i,j;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);}

Compilation message (stderr)

easy.cpp:2:27: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
easy.cpp: In function 'int main()':
easy.cpp:2:43: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
easy.cpp:2:75: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
/tmp/ccDWp4ub.o: In function `main':
easy.cpp:(.text.startup+0x0): multiple definition of `main'
/tmp/ccO7O8Rn.o:grader.cpp:(.text.startup+0x0): first defined here
/tmp/ccO7O8Rn.o: In function `main':
grader.cpp:(.text.startup+0x97): undefined reference to `CountPair(int, int*)'
collect2: ld returned 1 exit status