Guest User

Untitled

a guest
Nov 22nd, 2020
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-5.0$ ls -l
  2. total 4
  3. -rw-rw-r-- 1 manatwork manatwork 47 Nov 22 21:39 hello-world.cpp
  4.  
  5. bash-5.0$ cat hello-world.cpp
  6. #include<cstdio>
  7. main(){puts("Hello, World!");}
  8.  
  9. bash-5.0$ g++ --version
  10. g++ (Ubuntu 10.2.0-13ubuntu1) 10.2.0
  11. Copyright (C) 2020 Free Software Foundation, Inc.
  12. This is free software; see the source for copying conditions. There is NO
  13. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14.  
  15. bash-5.0$ g++ hello-world.cpp
  16. hello-world.cpp:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
  17. 2 | main(){puts("Hello, World!");}
  18. | ^~~~
  19.  
  20. bash-5.0$ ls -l
  21. total 24
  22. -rwxrwxr-x 1 manatwork manatwork 16816 Nov 22 21:42 a.out
  23. -rw-rw-r-- 1 manatwork manatwork 47 Nov 22 21:39 hello-world.cpp
  24.  
  25. bash-5.0$ ./a.out
  26. Hello, World!
  27.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×