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

Untitled - Stikked
From Insensitive Tortoise, 5 Years ago, written in C++.
Embed
  1. int main() {
  2.         std::vector<int> a;
  3.         std::vector<int> b;
  4.         std::std::vector<int> res[a.size() + b.size()];
  5.  
  6.         std::sort(a.begin(), a.end());
  7.         std::sort(b.begin(), b.end());
  8.  
  9.         size_t k = 0;
  10.         while(1) {
  11.                 if i < a.size() {
  12.                         if j < b.size(){
  13.                                 if a[i] < b[j] {
  14.                                         res[k] = a[i];
  15.                                         ++k;
  16.                                 } else {
  17.                                         res[k] = b[j];
  18.                                         ++k;
  19.                                 }
  20.                         } else { // j >= b.size()
  21.                                 res[k] = a[i];
  22.                                         ++k;
  23.                         }
  24.                 } else {
  25.                         if j < b.size() {
  26.                                 res[k] = b[j];
  27.                                         ++k;
  28.                                 } else {
  29.                                         break;
  30.                                 }
  31.                 }
  32.         }
  33. }