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

Compile Error

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