Run id: 148121
Main.cc: In function 'int calculateDays(int, int, int)':
Main.cc:37:5: error: 'ime_t' was not declared in this scope
ime_t birthSec = std::mktime(&birthTime);
^
Main.cc:40:9: error: 'birthSec' was not declared in this scope
if (birthSec == -1 || targetSec == -1) {
^
Main.cc:44:44: error: 'birthSec' was not declared in this scope
double diff = std::difftime(targetSec, birthSec) / (60 * 60 * 24);
^
Main.cc: In function 'int main()':
Main.cc:50:5: error: 'cin' was not declared in this scope
cin >> T;
^
Main.cc:50:5: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
Main.cc:56:9: error: 'cout' was not declared in this scope
cout << days << endl;
^
Main.cc:56:9: note: suggested alternative:
In file included from Main.cc:1:0:
/usr/include/c++/5/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
Main.cc:56:25: error: 'endl' was not declared in this scope
cout << days << endl;
^
Main.cc:56:25: note: suggested alternative:
In file included from /usr/include/c++/5/iostream:39:0,
from Main.cc:1:
/usr/include/c++/5/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^