fork download
  1. #include <iostream>
  2. #include <string>
  3. void print(int v)
  4. {
  5. std::cout<<"int:"<<v<<std::endl;
  6. }
  7. void print(bool v)
  8. {
  9. std::cout<<"bool:"<<v<<std::endl;
  10. }
  11. void print(std::string v)
  12. {
  13. std::cout<<"std::string v:"<<v<<std::endl;
  14. }
  15. int main()
  16. {
  17. print(1);
  18. print(true);
  19. print("Hello world");
  20. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
int:1
bool:1
bool:1