prog.cpp: In function ‘int main()’:
prog.cpp:12:1: error: ‘USHORT’ was not declared in this scope
USHORT todaysDate;
^
prog.cpp:12:8: error: expected ‘;’ before ‘todaysDate’
USHORT todaysDate;
^
prog.cpp:13:8: error: expected ‘;’ before ‘numberOfSchoolDaysLeftUntilSummer’
USHORT numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:25:10: error: no match for ‘operator<<’ (operand types are ‘std::istream {aka std::basic_istream<char>}’ and ‘char [10]’)
std::cin << lastMonthOfSchool;
^
prog.cpp:25:10: note: candidates are:
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:602:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&)
operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
^
/usr/include/c++/4.8/ostream:602:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:548:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const unsigned char*)
operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
^
/usr/include/c++/4.8/ostream:548:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:543:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const signed char*)
operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
^
/usr/include/c++/4.8/ostream:543:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:530:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, const char*)
operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
^
/usr/include/c++/4.8/ostream:530:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/ostream:609:0,
from /usr/include/c++/4.8/iostream:39,
from prog.cpp:1:
/usr/include/c++/4.8/bits/ostream.tcc:321:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const char*)
operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
^
/usr/include/c++/4.8/bits/ostream.tcc:321:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:513:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const _CharT*)
operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
^
/usr/include/c++/4.8/ostream:513:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:493:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, unsigned char)
operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
^
/usr/include/c++/4.8/ostream:493:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:488:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, signed char)
operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
^
/usr/include/c++/4.8/ostream:488:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:482:5: note: template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(std::basic_ostream<char, _Traits>&, char)
operator<<(basic_ostream<char, _Traits>& __out, char __c)
^
/usr/include/c++/4.8/ostream:482:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<char, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:476:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char)
operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
^
/usr/include/c++/4.8/ostream:476:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:471:5: note: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT)
operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
^
/usr/include/c++/4.8/ostream:471:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
In file included from /usr/include/c++/4.8/string:52:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from prog.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::basic_string<_CharT, _Traits, _Alloc>&)
operator<<(basic_ostream<_CharT, _Traits>& __os,
^
/usr/include/c++/4.8/bits/basic_string.h:2753:5: note: template argument deduction/substitution failed:
prog.cpp:25:13: note: ‘std::istream {aka std::basic_istream<char>}’ is not derived from ‘std::basic_ostream<_CharT, _Traits>’
std::cin << lastMonthOfSchool;
^
prog.cpp:29:20: error: switch quantity not an integer
switch (todaysMonth)
^
prog.cpp:31:6: error: ‘january’ was not declared in this scope
case january:
^
prog.cpp:32:18: warning: statement has no effect [-Wunused-value]
numberMonth + 1;
^
prog.cpp:34:6: error: ‘february’ was not declared in this scope
case february:
^
prog.cpp:35:18: warning: statement has no effect [-Wunused-value]
numberMonth + 2;
^
prog.cpp:37:6: error: ‘march’ was not declared in this scope
case march:
^
prog.cpp:38:18: warning: statement has no effect [-Wunused-value]
numberMonth + 3;
^
prog.cpp:40:6: error: ‘april’ was not declared in this scope
case april:
^
prog.cpp:41:18: warning: statement has no effect [-Wunused-value]
numberMonth + 4;
^
prog.cpp:43:6: error: ‘may’ was not declared in this scope
case may:
^
prog.cpp:44:18: warning: statement has no effect [-Wunused-value]
numberMonth + 5;
^
prog.cpp:46:6: error: ‘june’ was not declared in this scope
case june:
^
prog.cpp:47:18: warning: statement has no effect [-Wunused-value]
numberMonth + 6;
^
prog.cpp:49:6: error: ‘july’ was not declared in this scope
case july:
^
prog.cpp:50:18: warning: statement has no effect [-Wunused-value]
numberMonth - 6;
^
prog.cpp:52:6: error: ‘august’ was not declared in this scope
case august:
^
prog.cpp:53:18: warning: statement has no effect [-Wunused-value]
numberMonth - 5;
^
prog.cpp:55:6: error: ‘september’ was not declared in this scope
case september:
^
prog.cpp:56:18: warning: statement has no effect [-Wunused-value]
numberMonth - 4;
^
prog.cpp:58:6: error: ‘october’ was not declared in this scope
case october:
^
prog.cpp:59:18: warning: statement has no effect [-Wunused-value]
numberMonth - 3;
^
prog.cpp:61:6: error: ‘november’ was not declared in this scope
case november
^
prog.cpp:62:6: error: expected ‘:’ before ‘numberMonth’
numberMonth - 2;
^
prog.cpp:62:18: warning: statement has no effect [-Wunused-value]
numberMonth - 2;
^
prog.cpp:64:6: error: ‘december’ was not declared in this scope
case december:
^
prog.cpp:65:18: warning: statement has no effect [-Wunused-value]
numberMonth - 1;
^
prog.cpp:67:7: error: expected primary-expression before ‘default’
case default:
^
prog.cpp:67:7: error: expected ‘:’ before ‘default’
prog.cpp:72:26: error: switch quantity not an integer
switch (lastMonthOfSchool)
^
prog.cpp:74:6: error: ‘january’ was not declared in this scope
case january:
^
prog.cpp:75:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 1;
^
prog.cpp:77:6: error: ‘february’ was not declared in this scope
case february:
^
prog.cpp:78:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 2;
^
prog.cpp:80:6: error: ‘march’ was not declared in this scope
case march:
^
prog.cpp:81:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 3;
^
prog.cpp:83:6: error: ‘april’ was not declared in this scope
case april:
^
prog.cpp:84:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 4;
^
prog.cpp:86:6: error: ‘may’ was not declared in this scope
case may:
^
prog.cpp:87:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 5;
^
prog.cpp:89:6: error: ‘june’ was not declared in this scope
case june:
^
prog.cpp:90:22: warning: statement has no effect [-Wunused-value]
numberLastMonth + 6;
^
prog.cpp:92:6: error: ‘july’ was not declared in this scope
case july:
^
prog.cpp:93:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 6;
^
prog.cpp:95:6: error: ‘august’ was not declared in this scope
case august:
^
prog.cpp:96:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 5;
^
prog.cpp:98:6: error: ‘september’ was not declared in this scope
case september:
^
prog.cpp:99:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 4;
^
prog.cpp:101:6: error: ‘october’ was not declared in this scope
case october:
^
prog.cpp:102:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 3;
^
prog.cpp:104:6: error: ‘november’ was not declared in this scope
case november
^
prog.cpp:105:6: error: expected ‘:’ before ‘numberLastMonth’
numberLastMonth - 2;
^
prog.cpp:105:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 2;
^
prog.cpp:107:6: error: ‘december’ was not declared in this scope
case december:
^
prog.cpp:108:22: warning: statement has no effect [-Wunused-value]
numberLastMonth - 1;
^
prog.cpp:110:7: error: expected primary-expression before ‘default’
case default:
^
prog.cpp:110:7: error: expected ‘:’ before ‘default’
prog.cpp:116:31: error: lvalue required as left operand of assignment
numberLastMonth - numberMonth = monthsLeft;
^
prog.cpp:124:16: error: expected primary-expression before ‘=’ token
case = -1:
^
prog.cpp:125:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 2;
^
prog.cpp:127:16: error: expected primary-expression before ‘=’ token
case = -2:
^
prog.cpp:128:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 4;
^
prog.cpp:130:16: error: expected primary-expression before ‘=’ token
case = -3:
^
prog.cpp:131:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 6;
^
prog.cpp:133:16: error: expected primary-expression before ‘=’ token
case = -4:
^
prog.cpp:134:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 8;
^
prog.cpp:136:16: error: expected primary-expression before ‘=’ token
case = -5:
^
prog.cpp:137:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 10;
^
prog.cpp:139:16: error: expected primary-expression before ‘=’ token
case = -6:
^
prog.cpp:140:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 12;
^
prog.cpp:142:16: error: expected primary-expression before ‘=’ token
case = -7:
^
prog.cpp:143:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 14;
^
prog.cpp:145:16: error: expected primary-expression before ‘=’ token
case = -8:
^
prog.cpp:146:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 16;
^
prog.cpp:148:16: error: expected primary-expression before ‘=’ token
case = -9:
^
prog.cpp:149:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 18;
^
prog.cpp:151:16: error: expected primary-expression before ‘=’ token
case = -10:
^
prog.cpp:152:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 20;
^
prog.cpp:154:16: error: expected primary-expression before ‘=’ token
case = -11:
^
prog.cpp:155:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 22;
^
prog.cpp:157:16: error: expected primary-expression before ‘=’ token
case = -12:
^
prog.cpp:158:27: warning: statement has no effect [-Wunused-value]
monthsLeft + 24;
^
prog.cpp:160:16: error: expected primary-expression before ‘default’
case default:
^
prog.cpp:160:16: error: expected ‘:’ before ‘default’
prog.cpp:168:8: error: expected ‘;’ before ‘todaysDate’
USHORT todaysDate;
^
prog.cpp:169:8: error: expected ‘;’ before ‘lastDate’
USHORT lastDate;
^
prog.cpp:175:13: error: ‘todaysDate’ was not declared in this scope
std::cin >> todaysDate;
^
prog.cpp:178:13: error: ‘lastDate’ was not declared in this scope
std::cin >> lastDate;
^
prog.cpp:180:17: error: lvalue required as left operand of assignment
monthsLeft * 20 = daysLeftEstimate;
^
prog.cpp:181:56: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
lastDate - todaysDate -((lastDate - todaysDate)/7*2) = numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:187:13: error: ‘todaysDate’ was not declared in this scope
std::cin >> todaysDate;
^
prog.cpp:190:13: error: ‘lastDate’ was not declared in this scope
std::cin >> lastDate;
^
prog.cpp:192:19: error: lvalue required as left operand of assignment
monthsLeft * 18.8 = daysLeftEstimate;
^
prog.cpp:193:56: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
lastDate - todaysDate -((lastDate - todaysDate)/7*2) = numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:196:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (monthsLeft = 6)
^
prog.cpp:199:13: error: ‘todaysDate’ was not declared in this scope
std::cin >> todaysDate;
^
prog.cpp:202:13: error: ‘lastDate’ was not declared in this scope
std::cin >> lastDate;
^
prog.cpp:204:20: error: lvalue required as left operand of assignment
monthsLeft * 18.17 = daysLeftEstimate;
^
prog.cpp:205:56: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
lastDate - todaysDate -((lastDate - todaysDate)/7*2) = numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:208:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (monthsLeft = 7)
^
prog.cpp:211:13: error: ‘todaysDate’ was not declared in this scope
std::cin >> todaysDate;
^
prog.cpp:214:13: error: ‘lastDate’ was not declared in this scope
std::cin >> lastDate;
^
prog.cpp:216:20: error: lvalue required as left operand of assignment
monthsLeft * 17.71 = daysLeftEstimate;
^
prog.cpp:217:56: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
lastDate - todaysDate -((lastDate - todaysDate)/7*2) = numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:220:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (monthsLeft = 8)
^
prog.cpp:223:13: error: ‘todaysDate’ was not declared in this scope
std::cin >> todaysDate;
^
prog.cpp:226:13: error: ‘lastDate’ was not declared in this scope
std::cin >> lastDate;
^
prog.cpp:228:20: error: lvalue required as left operand of assignment
monthsLeft * 18.25 = daysLeftEstimate;
^
prog.cpp:229:56: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
lastDate - todaysDate -((lastDate - todaysDate)/7*2) = numberOfSchoolDaysLeftUntilSummer;
^
prog.cpp:232:33: error: ‘numberOfSchoolDaysLeftUntilSummer’ was not declared in this scope
std::cout << "\nThere are: " << numberOfSchoolDaysLeftUntilSummer << "days left until it is summer time. \n Estimation: \t" << daysLeftEstimation;
^
prog.cpp:232:128: error: ‘daysLeftEstimation’ was not declared in this scope
std::cout << "\nThere are: " << numberOfSchoolDaysLeftUntilSummer << "days left until it is summer time. \n Estimation: \t" << daysLeftEstimation;
^