/in/foo.cc:24:24: error: 'intm' has not been declared
24 | int pass(int y,intm,int d){
| ^~~~
/in/foo.cc: In member function 'bool Date::isLeap(int)':
/in/foo.cc:9:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
9 | return (y%400==0)||y%4==0&&y%100!=0);
| ~~~~~~^~~~~~~~~~
/in/foo.cc:9:48: error: expected ';' before ')' token
9 | return (y%400==0)||y%4==0&&y%100!=0);
| ^
/in/foo.cc:9:48: error: expected primary-expression before ')' token
/in/foo.cc: In constructor 'Date::Date(int, int, int)':
/in/foo.cc:17:50: error: expected identifier before 'int'
17 | Date(int y,int m,int d):year(y),month(m),int day(d){}
| ^~~
/in/foo.cc:17:50: error: expected '{' before 'int'
/in/foo.cc: In member function 'void Date::print()':
/in/foo.cc:19:29: error: unable to find string literal operator 'operator""month' with 'const char [2]', 'long unsigned int' arguments
19 | cout<<year<<" "month<<" "day;
| ^~~~~~~~
/in/foo.cc:19:39: error: unable to find string literal operator 'operator""day' with 'const char [2]', 'long unsigned int' arguments
19 | cout<<year<<" "month<<" "day;
| ^~~~~~
/in/foo.cc: In member function 'int Date::pass(int, int, int)':
/in/foo.cc:26:31: error: 'm' was not declared in this scope; did you mean 'tm'?
26 | for(int i=1;i<m;i++){
| ^
| tm
/in/foo.cc: In member function 'int Date::difference(Date&)':
/in/foo.cc:32:29: error: no matching function for call to 'Date::pass()'
32 | int num=pass();
| ~~~~^~
/in/foo.cc:24:13: note: candidate: 'int Date::pass(int, int, int)'
24 | int pass(int y,intm,int d){
| ^~~~
/in/foo.cc:24:13: note: candidate expects 3 arguments, 0 provided
/in/foo.cc:33:43: error: 'y' was not declared in this scope
33 | for(int i=year-1;i>d.year;y--){
| ^
/in/foo.cc:36:31: error: no matching function for call to 'Date::YearDay()'
36 | num+=d.YearDay()-d.pass();
| ~~~~~~~~~^~
/in/foo.cc:21:13: note: candidate: 'int Date::YearDay(int)'
21 | int YearDay(int y){
| ^~~~~~~
/in/foo.cc:21:13: note: candidate expects 1 argument, 0 provided
/in/foo.cc:36:40: error: no matching function for call to 'Date::pass()'
36 | num+=d.YearDay()-d.pass();
| ~~~~~~^~
/in/foo.cc:24:13: note: candidate: 'int Date::pass(int, int, int)'
24 | int pass(int y,intm,int d){
| ^~~~
/in/foo.cc:24:13: note: candidate expects 3 arguments, 0 provided
/in/foo.cc: In function 'int main()':
/in/foo.cc:43:26: error: found ':' in nested-name-specifier, expected '::'
43 | cin>>y2>>m2>>day2:
| ^
| ::
/in/foo.cc:43:22: error: 'day2' is not a class, namespace, or enumeration
43 | cin>>y2>>m2>>day2:
| ^~~~
/in/foo.cc:46:29: error: 'd1' was not declared in this scope; did you mean 'd2'?
46 | cout<<d2.difference(d1)<<end;
| ^~
| d2