Thread: initializer expression list treated as compound expression

  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Unhappy initializer expression list treated as compound expression

    Code:
    using namespace std;
      #include <stdio.h>
      #define r ((4*2)/(21/7)+1)
     #define _ o
     #define _0 4
      #define __ main
       #define _o 2
       #define o (_0 * _o)
      #define _O_O (r/r)
       char *s_o;
       int niral;
    int __(_0,*s_o,niral)//error here
    {
        return -_0<0?__(-4,"*X[&2SJ@z1'3#>E8A~)(=6$GT5,!KDNL?\n7&F%0AU[",_O_O/12):_0&1?*s_o? *s_o-niral?__(_0,++s_o,niral)_:_[s_o]:0:_0&2?__(_0,"*^\b-_8=&hJ\r2tinp1/S:'W>3r\n/_a-nl)g+9L>8-rI#?ini;9-en6B_eW$R[g+@GYe\tt-TnvRK!-_e^%WcsYNH9o\rz0+dB5,Ri.E-&nt_F\tgWpHDH4A_7~CoM^nU.ei^t^Xe^_^-t", niral):*s_o?__(_0,s_o+1,putchar(__(_0+2,"welcome 2 sIMULCra, NIRAL 2@!! ",*s_o)));
    }
    .14: error: initializer expression list treated as compound expression
    14: error: expected `,' or `;' before '{' token

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    This is c++ code and should be in the _____c++ section(__);

  3. #3
    Registered User cph's Avatar
    Join Date
    Sep 2008
    Location
    Indonesia
    Posts
    86
    hmm...are you planning to participate in some kind of obfuscated programming contest?
    Do not stare at my avatar.

  4. #4
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    That looks like a bunch of jibberish.

    I don't think you defined your function properly. Try this instead.

    Code:
    int __(_0, char *s_o, int niral) {
    /* ... */
    }
    Now delete the two lines above line 14.
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    5
    yes cgs can i help for this code

  6. #6
    Registered User
    Join Date
    Feb 2011
    Posts
    5
    Babkockdood : i tried it but not working

  7. #7
    Third Eye Babkockdood's Avatar
    Join Date
    Apr 2010
    Posts
    352
    Quote Originally Posted by karthikeyanvisu View Post
    Babkockdood : i tried it but not working
    What do you mean, "not working"? Is it not compiling? Are you getting segmentation faults? Are you getting bus errors?
    Quote Originally Posted by The Jargon File
    Microsoft Windows - A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  8. #8
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Get it working in its readable form first. Then obfuscate. There are very few people out there that want to sort our what code like that does.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2009, 07:38 AM
  2. c program that accepts and executes commands?
    By Cimposter in forum C Programming
    Replies: 3
    Last Post: 09-30-2009, 02:58 PM
  3. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  4. 1st Class LIST ADT
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-09-2001, 07:29 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM