fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. _asm
  6. (
  7. section .text
  8. GLOBAL timestamp
  9. timestamp:
  10. RDTSC
  11. RET
  12. )
  13. // your code goes here
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:7:6: error: 'section' was not declared in this scope
      section .text
      ^
prog.cpp:12:5: error: '_asm' was not declared in this scope
     )
     ^
stdout
Standard output is empty