#include <iostream> using namespace std; struct Test {}; void func(Test const & t) { } void func(const &Test t) { } int main() { // your code goes here return 0; }
Standard input is empty
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)
^
Standard output is empty