A PHP Error was encountered

Severity: 8192

Message: Function create_function() is deprecated

Filename: geshi/geshi.php

Line Number: 4698

Backtrace:

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4698
Function: _error_handler

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 4621
Function: _optimize_regexp_list_tokens_to_string

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 1655
Function: optimize_regexp_list

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2029
Function: optimize_keyword_group

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/geshi/geshi.php
Line: 2168
Function: build_parse_cache

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/libraries/Process.php
Line: 45
Function: parse_code

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/models/Pastes.php
Line: 517
Function: syntax

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/application/controllers/Main.php
Line: 693
Function: getPaste

File: /home/httpd/vhosts/scratchbook.ch/geopaste.scratchbook.ch/index.php
Line: 315
Function: require_once

Homework - Stikked
From Manny, 10 Years ago, written in Java.
Embed
  1. Emmanuel Singletary
  2.  
  3. 2.
  4. int goals = 5, errors = 2;
  5.  
  6. if (goals > 10 && errors == 0) }
  7.     System.out.println("Wow");
  8. } else {
  9.     System.out.println("Oh well");
  10. }
  11.  
  12. 3.
  13. double salary = 50000.0, deductions = 10000.0, net;
  14.  
  15. if (salary >= deductions) {
  16.     net = salary - deductions;
  17.     System.out.println("OK");
  18. } else if (salary < deductions) {
  19.     System.out.println("No Way");
  20. }
  21.  
  22. 6.
  23. String nextWord = "apldeap", letter = "n";
  24.  
  25. if (letter.compareTo(nextWord.toLowerCase()) > 0) {
  26.     System.out.println("First half of the alphabet");
  27. } else if (letter.compareTo(nextWord.toLowerCase()) < 0) {
  28.     System.out.println("Second half of the alphabet");
  29. }
  30.  
  31.  
  32. 4.
  33. a. B
  34. b. B
  35. c. A
  36. d. A
  37. e. A
  38. f. A
  39.  
  40. 5.
  41. a. C
  42. b. C
  43. c. A B
  44. d. A B
  45. e. A
  46. f. A
  47.