Main.cpp: In function 'int main()':
Main.cpp:31:15: error: expected primary-expression at end of input
31 | return
| ^
Main.cpp:31:15: error: expected ';' at end of input
31 | return
| ^
| ;
Main.cpp:31:15: error: expected '}' at end of input
Main.cpp:12:12: note: to match this '{'
12 | int main() {
| ^
Main.cpp: In function 'int ri()':
Main.cpp:8:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
8 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~