Problem shiritori
User jerrielchangjiebin
Submission Time 2024-12-30 12:22:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shiritori.cpp: In function ‘int main()’:
shiritori.cpp:7:18: error: declaration does not declare anything [-fpermissive]
7 | #define int long long;
| ^~~~
shiritori.cpp:9:2: note: in expansion of macro ‘int’
9 | int n;
| ^~~
shiritori.cpp:9:6: error: ‘n’ was not declared in this scope
9 | int n;
| ^
shiritori.cpp:7:18: error: declaration does not declare anything [-fpermissive]
7 | #define int long long;
| ^~~~
shiritori.cpp:13:7: note: in expansion of macro ‘int’
13 | for (int i=1; i<n; ++i) {
| ^~~
shiritori.cpp:13:11: error: ‘i’ was not declared in this scope
13 | for (int i=1; i<n; ++i) {
| ^
shiritori.cpp:13:19: error: expected ‘)’ before ‘;’ token
13 | for (int i=1; i<n; ++i) {
| ~ ^
| )
shiritori.cpp:13:23: error: ‘i’ was not declared in