QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#637547 | #7724. Irreducible Fractions | ucup-team1882# | Compile Error | / | / | C++14 | 645b | 2024-10-13 13:17:42 | 2024-10-13 13:17:43 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:14:41: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘ll*’ {aka ‘long long int*’} [-Wformat=] 14 | for(int i = 1; i <= n; ++i) scanf("%d", a + i); | ~^ ~~~~~ | | | | int* ll* {aka long long int*} | %lld answer.code:16:45: error: ‘gcd’ is not a member of ‘std’ 16 | for(int j = 1; j <= n; ++j) if(std::gcd(a[i], a[j]) == 1) s[i][j] = 1; | ^~~ answer.code:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ answer.code:14:38: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | for(int i = 1; i <= n; ++i) scanf("%d", a + i); | ~~~~~^~~~~~~~~~~~~