QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#653819 | #7176. I Flipped The Calendar... | HuangHanSheng | Compile Error | / | / | C++17 | 638b | 2024-10-18 20:41:49 | 2024-10-18 20:41:51 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:9:29: error: expected primary-expression before ‘=’ token 9 | if(y%4==0 && y%100!==0 || y%400==0){ | ^ answer.code:13:29: error: expected identifier before numeric constant 13 | daysinmonth[1]=[28]; | ^~ answer.code: In lambda function: answer.code:13:32: error: expected ‘{’ before ‘;’ token 13 | daysinmonth[1]=[28]; | ^ answer.code: In function ‘int main()’: answer.code:13:28: error: invalid user-defined conversion from ‘main()::<lambda()>’ to ‘int’ [-fpermissive] 13 | daysinmonth[1]=[28]; | ^~~~ answer.code:13:28: note: candidate is: ‘constexpr main()::<lambda()>::operator void (*)()() const’ (near match) 13 | daysinmonth[1]=[28]; | ^ answer.code:13:28: note: no known conversion from ‘void (*)()’ to ‘int’ answer.code:29:11: error: ‘totalrows’ was not declared in this scope 29 | cout<<totalrows<<endl; | ^~~~~~~~~