fork download
  1. void foo(const char **p)
  2. {
  3.  
  4. }
  5.  
  6. int main()
  7. {
  8. char *t;
  9. foo(&t);
  10.  
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:11: error: invalid conversion from ‘char**’ to ‘const char**’ [-fpermissive]
     foo(&t);
           ^
prog.cpp:1:6: error:   initializing argument 1 of ‘void foo(const char**)’ [-fpermissive]
 void foo(const char **p)
      ^
stdout
Standard output is empty