Problem uniquenumbers
User Astronite
Submission Time 2025-01-08 16:47:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:19:8: error: invalid initialization of reference of type ‘int&’ from expression of type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}
19 | read(a);
| ^
uniquenumbers.cpp:3:23: note: in passing argument 1 of ‘void read(int&)’
3 | inline void read(int& x){
| ~~~~~^