fork(1) download
  1. #include <iostream>
  2. #include <ctime>
  3. using namespace std;
  4.  
  5. struct tm
  6. {
  7. int fHour;
  8. int fMinute;
  9. int uHour;
  10. int uMinute;
  11. };
  12.  
  13. int main() {
  14. // your code goes here
  15. return 0;
  16. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:8: error: redefinition of ‘struct tm’
 struct tm
        ^~
In file included from /usr/include/time.h:39,
                 from /usr/include/pthread.h:24,
                 from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148,
                 from /usr/include/c++/8/ext/atomicity.h:35,
                 from /usr/include/c++/8/bits/ios_base.h:39,
                 from /usr/include/c++/8/ios:42,
                 from /usr/include/c++/8/ostream:38,
                 from /usr/include/c++/8/iostream:39,
                 from prog.cpp:1:
/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: previous definition of ‘struct tm’
 struct tm
        ^~
stdout
Standard output is empty