prog.cpp:18:1: error: expected expression
\\some code here doesn't make sense, uninitialized?
^
prog.cpp:18:23: warning: missing terminating ' character [-Winvalid-pp-token]
\\some code here doesn't make sense, uninitialized?
^
prog.cpp:21:62: error: expected ';' after expression
scanf("%i%i%i", thisDay.month, thisDay.day, thisDay.year) /* '&' shouldn't be here*/
^
;
prog.cpp:21:21: error: use of undeclared identifier 'thisDay'
scanf("%i%i%i", thisDay.month, thisDay.day, thisDay.year) /* '&' shouldn't be here*/
^
prog.cpp:21:36: error: use of undeclared identifier 'thisDay'
scanf("%i%i%i", thisDay.month, thisDay.day, thisDay.year) /* '&' shouldn't be here*/
^
prog.cpp:21:49: error: use of undeclared identifier 'thisDay'
scanf("%i%i%i", thisDay.month, thisDay.day, thisDay.year) /* '&' shouldn't be here*/
^
prog.cpp:23:5: error: use of undeclared identifier 'nextDay'
nextDay = dateUpdate(&thisDay);
^
prog.cpp:23:27: error: use of undeclared identifier 'thisDay'
nextDay = dateUpdate(&thisDay);
^
prog.cpp:25:48: error: use of undeclared identifier 'nextDay'
printf("Tomorrow's date is %i/%i/%.2i.\n", nextDay.month, nextDay.day, nextDay.year % 100);
^
prog.cpp:25:63: error: use of undeclared identifier 'nextDay'
printf("Tomorrow's date is %i/%i/%.2i.\n", nextDay.month, nextDay.day, nextDay.year % 100);
^
prog.cpp:25:76: error: use of undeclared identifier 'nextDay'
printf("Tomorrow's date is %i/%i/%.2i.\n", nextDay.month, nextDay.day, nextDay.year % 100);
^
prog.cpp:36:13: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
if(today.day != numberOfDays (today))
~~~~~^
->
prog.cpp:36:35: error: no viable conversion from 'struct date *' to 'struct date'
if(today.day != numberOfDays (today))
^~~~~
prog.cpp:4:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'struct date *' to 'const date &' for 1st argument; dereference the argument with *
struct date
^
prog.cpp:34:35: note: passing argument to parameter 'd' here
int numberOfDays (struct date d);
^
prog.cpp:38:40: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {today.month, today.day + 1, today.year};
~~~~~^
->
prog.cpp:38:53: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {today.month, today.day + 1, today.year};
~~~~~^
->
prog.cpp:38:68: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {today.month, today.day + 1, today.year};
~~~~~^
->
prog.cpp:40:18: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
else if(today.month == 12)
~~~~~^
->
prog.cpp:42:46: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {1, 1, today.year + 1};
~~~~~^
->
prog.cpp:46:40: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {today.month + 1, 1, today.year};
~~~~~^
->
prog.cpp:46:60: error: member reference type 'struct date *' is a pointer; did you mean to use '->'?
tomorrow = (struct date) {today.month + 1, 1, today.year};
~~~~~^
->
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.