[ create a new paste ] login | about

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

C++, pasted on Jun 16:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>

using namespace std;

int main()
{
    int ptr = new int;
    delete ptr;
    
    return 0;
}


Output:
1
2
3
In function 'int main()':
Line 7: error: invalid conversion from 'int*' to 'int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: