QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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]); | ~~~~~^~~~~~~~~~~~~~