fork download
  1. // Pseudocode PLD Chapter 8 #1 pg. 366
  2. // Start
  3. // Declarations
  4. // num SIZE = 10
  5. // num NUMBERS[SIZE]
  6. // num i
  7. // num j
  8. // num temp
  9. // for i = 0 to SIZE - 1
  10. // output "Please enter a number: "
  11. // input NUMBERS[i]
  12. // endfor
  13. // for i = 0 to SIZE - 2
  14. // for j = 0 to SIZE - 2
  15. // if (NUMBERS[j] < NUMBERS[j+1])
  16. // temp = NUMBERS[j]
  17. // NUMBERS[j] = NUMBERS[j+1]
  18. // NUMBERS[j+1] = temp
  19. // endif
  20. // endfor
  21. // endfor
  22. // output "Sorted List"
  23. // output "==========="
  24. // for i = 0 to SIZE - 1
  25. // output "Number ", i + 1, ": ", NUMBERS[i]
  26. // endfor
  27. // Stop
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty