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

Re: Constellation - Stikked
From Constellation, 11 Years ago, written in C.
This paste is a reply to Constellation from Constellation - go back
Embed
Viewing differences between Constellation and Re: Constellation
#include<stdio.h>
#include<stdlib.h>

int main( void )
{        
    int month, day;
    
    do{
        printf("Please input your birthday (MM.DD), input -1 to end: "); 
        scanf("%02d.%02d", &month, &day); 

        switch( month ){
                         case 1:
                                  if( day >= 1 && day <= 20 ) printf("???\n");                                          
                                  else if( day >= 21 && day <= 31 ) printf("???\n"); 
                                  else printf("?????\n");                                           
                         break;
               
                         case 2:
                                  if(day >= 1 && day <= 19) printf("???\n");                                          
                                  else if( day >= 20 && day <= 29) printf("???\n");                                           
                                  else printf("?????\n");                                          
                         break;
               
                         case 3:
                                  if(day >= 1 && day <= 19) printf("???\n");                                          
                                  else if( day >= 20 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 4:
                                  if(day >= 1 && day <= 20) printf("???\n");                                          
                                  else if( day >= 21 && day <= 30) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 5:
                                  if(day >= 1 && day <= 21) printf("???\n");                                          
                                  else if( day >= 22 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");           
                         break;
               
                         case 6:
                                  if(day >= 1 && day <= 21) printf("???\n");                                          
                                  else if( day >= 22 && day <= 30) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 7:
                                  if(day >= 1 && day <= 23) printf("???\n");                                          
                                  else if( day >= 24 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 8:
                                  if(day >= 1 && day <= 23) printf("???\n");                                          
                                  else if( day >= 24 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 9:
                                  if(day >= 1 && day <= 23) printf("???\n");                                          
                                  else if( day >= 24 && day <= 30) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 10:
                                  if(day >= 1 && day <= 24) printf("???\n");                                          
                                  else if( day >= 25 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 11:
                                  if(day >= 1 && day <= 23) printf("???\n");                                          
                                  else if( day >= 24 && day <= 30) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         case 12:
                                  if(day >= 1 && day <= 22) printf("???\n");                                         
                                  else if( day >= 23 && day <= 31) printf("???\n");                                           
                                  else printf("?????\n");                                           
                         break;
               
                         default:
                                if(month == -1);
                                else printf("????\n");         
                         break;
        }
        printf("\n"); 
    }while(month != -1);
        
    system("pause");
    return 0;
}