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

C++ - Stikked
From inari, 11 Years ago, written in C++.
Embed
  1. {
  2.         int i,j,x[7][7]={},m=1,k;
  3.  
  4.         i=0;j=7/2;
  5.         x[i][j]=m++;
  6.         for(k=0;k<7*7-1;k++)
  7.                 {
  8.                         i--;j++;
  9.                         if(i<0)i+=7;
  10.                         if(j>=7)j-=7;
  11.                         if(x[i][j]!=0)
  12.                         {
  13.  
  14.                         i++;j--;
  15.                         if(j<0)j+=7;
  16.                         if(i>=7)i-=7;
  17.                         i++;
  18.                         }
  19.                                                 x[i][j]=m++;
  20.                 }
  21. for(i=0;i<7;i++)
  22. {
  23.         for(j=0;j<7;j++)
  24.                 printf("%5d",x[i][j]);
  25. printf("\n");
  26. }
  27.  
  28.  
  29. /////
  30.  
  31. {
  32.         int i,j;
  33.         for(i=1;i<9;i++)
  34.         {
  35.                 for(j=1;j<=9;j++)
  36.                         printf("%d*%d=%2d ",j,i,i*j);
  37.                 printf("\n");
  38.         }
  39.  
  40. //////
  41.  
  42. {
  43.         int i,j,x[5]={3,2,1,4,5},temp;
  44.         for(i=0;i<5;i++)
  45.                 printf("%3d",x[i]);
  46.         printf("\n......\n");
  47.                         for(j=0;j<4;j++)
  48.                         {
  49.                                 for(i=0;i<4-j;i++)
  50.                                         if(x[i]>x[i+1])
  51.                                         {
  52.                                                 temp=x[i];
  53.                                                 x[i]=x[i+1];
  54.                                                 x[i+1]=temp;
  55.                                         }
  56.                                         for(i=0;i<5;i++)
  57.                                                 printf("%d ",x[i]);
  58.                                                 printf("\n");
  59.                         }