[ create a new paste ] login | about

Link: http://codepad.org/RSjnrbjA    [ raw code | output | fork ]

C, pasted on Dec 8:
#include<stdio.h>
int main()
{
    int a,b,c;
    int s,w,t;
    s=w=t=1;
    a=-1;
    b=3;
    c=3;
    if(c>0) s=a+b;
        if(a<=0)
        {
            if(b>0)
                  if(c<=0)
                     w=a-b;
        }
    else if(c>0) 
        w=a-b;
    else 
        t=c;
    printf(%d,%d,%d,s,w,t);
    return 0;
}


Output:
1
2
3
4
5
6
7
8
In function 'main':
Line 21: error: stray '\342' in program
Line 21: error: stray '\200' in program
Line 21: error: stray '\234' in program
Line 21: error: expected expression before '%' token
Line 21: error: stray '\342' in program
Line 21: error: stray '\200' in program
Line 21: error: stray '\235' in program


Create a new paste based on this one


Comments: