foo.cc: In function 'const int Get_Int()':
foo.cc:11:29: error: 'undefined' was not declared in this scope
11 | inline const int Get_Int() {undefined
| ^~~~~~~~~
foo.cc:14:35: error: expected ';' before 'if'
14 | while(x<'0'||x>'9') {undefined
| ^
| ;
15 | if(x=='-')bj=-1;
| ~~
foo.cc:18:37: error: expected ';' before 'num'
18 | while(x>='0'&&x<='9') {undefined
| ^
| ;
19 | num=num*10+x-'0';
| ~~~
foo.cc:22:12: error: 'num' was not declared in this scope; did you mean 'enum'?
22 | return num*bj;
| ^~~
| enum
foo.cc:22:16: error: 'bj' was not declared in this scope
22 | return num*bj;
| ^~
foo.cc: In function 'bool Check(int)':
foo.cc:25:23: error: 'undefined' was not declared in this scope
25 | bool Check(int Date) {undefined
| ^~~~~~~~~
foo.cc:26:21: error: expected primary-expression before ',' token
26 | int tmp[10]= {0},cnt=0;
| ^
foo.cc:26:22: error: 'cnt' was not declared in this scope; did you mean 'int'?
26 | int tmp[10]= {0},cnt=0;
| ^~~
| int
foo.cc:27:27: error: expected ';' before 'cnt'
27 | while(Date) {undefined
| ^
| ;
28 | cnt++;
| ~~~
foo.cc:29:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
29 | tmp[cnt]=Date%10;
| ^~~
| tm
foo.cc:33:12: error: 'tmp' was not declared in this scope; did you mean 'tm'?
33 | if(tmp[i]!=tmp[9-i])return false;
| ^~~
| tm
foo.cc: In function 'int GetNext(int)':
foo.cc:37:24: error: 'undefined' was not declared in this scope
37 | int GetNext(int Date) {undefined
| ^~~~~~~~~
foo.cc:38:21: error: expected primary-expression before ',' token
38 | int tmp[10]= {0},cnt=0,Year=0,Month=0,Day=0;
| ^
foo.cc:38:22: error: 'cnt' was not declared in this scope; did you mean 'int'?
38 | int tmp[10]= {0},cnt=0,Year=0,Month=0,Day=0;
| ^~~
| int
foo.cc:38:28: error: 'Year' was not declared in this scope
38 | int tmp[10]= {0},cnt=0,Year=0,Month=0,Day=0;
| ^~~~
foo.cc:38:35: error: 'Month' was not declared in this scope
38 | int tmp[10]= {0},cnt=0,Year=0,Month=0,Day=0;
| ^~~~~
foo.cc:38:43: error: 'Day' was not declared in this scope
38 | int tmp[10]= {0},cnt=0,Year=0,Month=0,Day=0;
| ^~~
foo.cc:39:27: error: expected ';' before 'cnt'
39 | while(Date) {undefined
| ^
| ;
40 | cnt++;
| ~~~
foo.cc:41:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
41 | tmp[cnt]=Date%10;
| ^~~
| tm
foo.cc:45:30: error: 'tmp' was not declared in this scope; did you mean 'tm'?
45 | if(i>=5)Year=Year*10+tmp[i];
| ^~~
| tm
foo.cc:46:37: error: 'tmp' was not declared in this scope; did you mean 'tm'?
46 | else if(i>=3)Month=Month*10+tmp[i];
| ^~~
| tm
foo.cc:47:25: error: 'tmp' was not declared in this scope; did you mean 'tm'?
47 | else Day=Day*10+tmp[i];
| ^~~
| tm
foo.cc:51:49: error: expected ';' before 'if'
51 | else if(Day==tmpMonthDays[Month]) {undefined
| ^
| ;
52 | if(Month!=12)Month++;
| ~~
foo.cc:53:9: error: expected '}' before 'else'
53 | else {undefined
| ^~~~
foo.cc:51:39: note: to match this '{'
51 | else if(Day==tmpMonthDays[Month]) {undefined
| ^
foo.cc:53:24: error: expected ';' before 'Year'
53 | else {undefined
| ^
| ;
54 | Year++;
| ~~~~
foo.cc:58:5: warning: no return statement in function returning non-void [-Wreturn-type]
58 | }
| ^
foo.cc: At global scope:
foo.cc:59:5: error: expected unqualified-id before 'return'
59 | return Year*10000+Month*100+Day;
| ^~~~~~
foo.cc:60:1: error: expected declaration before '}' token
60 | }
| ^
foo.cc: In function 'int main()':
foo.cc:62:13: error: 'undefined' was not declared in this scope
62 | int main() {undefined
| ^~~~~~~~~
foo.cc:63:18: error: 'i' was not declared in this scope
63 | for(int i=1; i<=12; i++)tmpMonthDays[i]=MonthDays[i];
| ^
foo.cc:66:30: error: expected ';' before 'printf'
66 | if(Start==End) {undefined
| ^
| ;
67 | printf("%d\n",Check(Start));
| ~~~~~~
foo.cc:71:27: error: expected ';' before 'sum'
71 | while(true) {undefined
| ^
| ;
72 | sum+=Check(Now);
| ~~~
[Hydro](https://hydro.ac)提供评测服务