#include <iostream> int foo() { std::cout<<"also works";} int main() { // your code goes here std::cout<<"works"; foo();}
Standard input is empty
worksalso works
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!