QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#324801 | #8237. Sugar Sweet II | ucup-team244# | Compile Error | / | / | C++14 | 2.6kb | 2024-02-11 00:25:43 | 2024-02-11 00:25:43 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:47:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘std::pair<int, int>*’ [-Wformat=] 47 | scanf("%d",&p[i].x); | ~^ | | | int* answer.code:3:11: error: cannot convert ‘std::pair<int, int>’ to ‘int’ in assignment 3 | #define x first | ^ | | | std::pair<int, int> answer.code:48:19: note: in expansion of macro ‘x’ 48 | a[i]=p[i].x; | ^ answer.code:73:18: error: ‘i’ was not declared in this scope 73 | if(vis[p[i].y])continue; | ^ answer.code:74:15: error: ‘i’ was not declared in this scope 74 | vis[p[i].y]=1; | ^ answer.code:42:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 42 | scanf("%d",&n); | ~~~~~^~~~~~~~~ answer.code:47:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 47 | scanf("%d",&p[i].x); | ~~~~~^~~~~~~~~~~~~~ answer.code:52:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 52 | scanf("%d",&b[i]); | ~~~~~^~~~~~~~~~~~ answer.code:56:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 56 | scanf("%d",&w[i]); | ~~~~~^~~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:102:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 102 | scanf("%d",&t); | ~~~~~^~~~~~~~~