fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Test {};
  5.  
  6. void func(Test const & t)
  7. {
  8. }
  9.  
  10. void func(const &Test t)
  11. {
  12. }
  13.  
  14. int main() {
  15. // your code goes here
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:10:18: error: ISO C++ forbids declaration of ‘Test’ with no type [-fpermissive]
 void func(const &Test t)
                  ^~~~
prog.cpp:10:23: error: expected ‘,’ or ‘...’ before ‘t’
 void func(const &Test t)
                       ^
stdout
Standard output is empty