Main.cc:8:3: error: expected unqualified-id before ‘{’ token
{
^
Main.cc: In function ‘int main()’:
Main.cc:17:5: error: ‘change’ was not declared in this scope
change(n);
^~~~~~
Main.cc:17:5: note: suggested alternative: ‘clone’
change(n);
^~~~~~
clone
Main.cc:17:14: error: expected ‘}’ at end of input
change(n);
^
Main.cc:16:11: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~