QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#470173 | #4928. Game With Numbers | HuangHanSheng | Compile Error | / | / | C++98 | 666b | 2024-07-10 11:04:52 | 2024-07-10 11:04:52 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:36:30: error: ‘s’ was not declared in this scope 36 | for(int i=1;i<=n;i++)s+=a[i]; | ^ answer.code:11:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 11 | for(int i=1;i<=n;i++)scanf("%d",&a[i]); | ~~~~~^~~~~~~~~~~~ answer.code:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d",&b[i]); | ~~~~~^~~~~~~~~~~~