int main() { int* ptr =10; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:2: error: invalid conversion from ‘int’ to ‘int*’ prog.cpp:2: warning: unused variable ‘ptr’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!