fork download
  1. class example
  2. {
  3. public:
  4. example(const char (&in_data)[6]);
  5. };
  6.  
  7. example foo()
  8. {
  9. return "ABCDE";
  10. }
  11.  
  12. example bar()
  13. {
  14. return example("ABCDE");
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘example foo()’:
prog.cpp:9: error: conversion from ‘const char*’ to non-scalar type ‘example’ requested
stdout

Standard output is empty