Main.cc: In function 'int niuyanxi(int)': Main.cc:14:6: error: expected primary-expression before 'or' token }or(int i=1;i<=n;i++){ ^ Main.cc:14:9: error: expected primary-expression before 'int' }or(int i=1;i<=n;i++){ ^ Main.cc:14:9: error: expected ')' before 'int' Main.cc:14:17: error: 'i' was not declared in this scope }or(int i=1;i<=n;i++){ ^ Main.cc: In function 'int main()': Main.cc:27:27: error: expected ')' before ';' token ans+=nyx((niuyanxi(a)); ^