Problem arraygraph
User VNHbest
Submission Time 2026-09-06 16:31:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

arraygraph.cpp: In function ‘int main()’:
arraygraph.cpp:34:12: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
34 | in(res);
| ^~~
arraygraph.cpp:10:14: note: in passing argument 1 of ‘void in(int&)’
10 | void in(int &number){
| ~~~~~^~~~~~