#include <iostream> #include <vector> using namespace std; int & try_k(const int & i){return i;} int main() { cout << tryk(1); return 0; }
Standard input is empty
prog.cpp: In function 'int& try_k(const int&)': prog.cpp:7:35: error: invalid initialization of reference of type 'int&' from expression of type 'const int' prog.cpp: In function 'int main()': prog.cpp:14:19: error: 'tryk' was not declared in this scope
Standard output is empty