/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])
| ^