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; }
1 2 3
In function 'int main()': Line 7: error: invalid conversion from 'int*' to 'int' compilation terminated due to -Wfatal-errors.