Compile Error

/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:4:7: note: in expansion of macro 'int'
    4 | const int N=2e5;
      |       ^~~
/in/foo.cc:4:11: error: 'N' does not name a type
    4 | const int N=2e5;
      |           ^
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:5:1: note: in expansion of macro 'int'
    5 | int n;
      | ^~~
/in/foo.cc:5:5: error: 'n' does not name a type
    5 | int n;
      |     ^
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:6:1: note: in expansion of macro 'int'
    6 | int a[N+1];
      | ^~~
/in/foo.cc:6:5: error: 'a' does not name a type
    6 | int a[N+1];
      |     ^
/in/foo.cc:7:8: error: 'N' was not declared in this scope
    7 | char c[N+1];
      |        ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:13:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   13 |         cin>>n;
      |              ^
      |              yn
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:14:13: note: in expansion of macro 'int'
   14 |         for(int i=1;i<=n;i++)
      |             ^~~
/in/foo.cc:14:17: error: 'i' was not declared in this scope
   14 |         for(int i=1;i<=n;i++)
      |                 ^
/in/foo.cc:14:25: error: expected ')' before ';' token
   14 |         for(int i=1;i<=n;i++)
      |            ~            ^
      |                         )
/in/foo.cc:14:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   14 |         for(int i=1;i<=n;i++)
      |         ^~~
/in/foo.cc:14:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   14 |         for(int i=1;i<=n;i++)
      |                          ^
/in/foo.cc:14:26: error: 'i' was not declared in this scope
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:18:9: note: in expansion of macro 'int'
   18 |         int l=1,r=n;
      |         ^~~
/in/foo.cc:18:13: error: 'l' was not declared in this scope
   18 |         int l=1,r=n;
      |             ^
/in/foo.cc:18:17: error: 'r' was not declared in this scope
   18 |         int l=1,r=n;
      |                 ^
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:19:9: note: in expansion of macro 'int'
   19 |         int ans=0;
      |         ^~~
/in/foo.cc:19:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   19 |         int ans=0;
      |             ^~~
      |             abs
/in/foo.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
/in/foo.cc:22:17: note: in expansion of macro 'int'
   22 |                 int k=min(a[l],a[r]);
      |                 ^~~
/in/foo.cc:22:21: error: 'k' was not declared in this scope
   22 |                 int k=min(a[l],a[r]);
      |                     ^
/in/foo.cc:22:27: error: 'a' was not declared in this scope
   22 |                 int k=min(a[l],a[r]);
      |                           ^
/in/foo.cc:23:20: error: 'c' was not declared in this scope
   23 |                 if(c[l]!=c[r])
      |                    ^

信息

递交者
类型
递交
题目
P3198 回文串
比赛
2026.11.15高级班练习
语言
C++
递交时间
2026-11-16 09:51:44
评测时间
2026-11-16 09:51:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes