[ create a new paste ] login | about

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

C++, pasted on Nov 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
inline char readchar()
{
    static const size_t bufsize = 65536;
    static char buf[bufsize];
    static char *p = buf, *end = buf;
    if (p == end) end = buf + fread_unlocked(buf, 1, bufsize, stdin), p = buf;
    return *p++;
}

template <class T> void input(T& a)
{
    static char p;
    while ((p = readchar()) < '0') ;
    a = p ^ '0';
    while ((p = readchar()) >= '0') a *= 10, a += p ^ '0';
}


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: