fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int & try_k(const int & i){return i;}
  8.  
  9.  
  10.  
  11. int main() {
  12.  
  13.  
  14. cout << tryk(1);
  15.  
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
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
stdout
Standard output is empty