fork download
  1. #include <time.h>
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main() {
  6. time_t theTime = time(NULL);
  7. struct tm *aTime = localtime(&theTime);
  8. int year = aTime->tm_year + 1900;
  9. if(year == 2013) {
  10. cout << "Exit " << year << endl;
  11. return 0;
  12. }
  13. cout << "PRIVATE CONTENT :3" << endl;
  14. cout << "year: " << year << endl;
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
Exit 2013