QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#653819#7176. I Flipped The Calendar...HuangHanShengCompile Error//C++17638b2024-10-18 20:41:492024-10-18 20:41:51

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;
      |           ^~~~~~~~~