[ create a new paste ] login | about

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

C, pasted on May 14:
1
2
3
4
5
6
7
8
9
10
11
#include<iostream>
#include<string>
using namespace std;

int main(void)
{

    char a, b;
    a='1';
    b='2';
    cout<<stoi(a)+stoi(b);


Output:
1
2
3
4
5
6
7
8
Line 18: error: iostream: No such file or directory
Line 16: error: string: No such file or directory
Line 3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'
In function 'main':
Line 11: error: 'cout' undeclared (first use in this function)
Line 11: error: (Each undeclared identifier is reported only once
Line 11: error: for each function it appears in.)
Line 11: error: expected declaration or statement at end of input


Create a new paste based on this one


Comments: