QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#364849 | #8057. Best Carry Player 4 | ZhaoZiLong | Compile Error | / | / | C++11 | 1.5kb | 2024-03-24 16:58:03 | 2024-03-24 16:58:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:7:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 7 | main(){ | ^~~~ answer.code: In function ‘int main()’: answer.code:39:43: error: expected primary-expression before ‘]’ token 39 | ans+=a[i];] | ^ answer.code:14:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%lld",&a[i]); | ~~~~~^~~~~~~~~~~~~~ answer.code:18:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%lld",&b[i]); | ~~~~~^~~~~~~~~~~~~~