sirni.cpp:46:2: error: stray '#' in program
46 | }#include<bits/stdc++.h>
| ^
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:11: error: 'bits' was not declared in this scope
46 | }#include<bits/stdc++.h>
| ^~~~
sirni.cpp:46:16: error: 'stdc' was not declared in this scope; did you mean 'std'?
46 | }#include<bits/stdc++.h>
| ^~~~
| std
sirni.cpp:46:3: error: 'include' does not name a type
46 | }#include<bits/stdc++.h>
| ^~~~~~~
sirni.cpp:51:5: error: redefinition of 'int x [100000]'
51 | int x[100000], nxt[10000001], p[10000001];
| ^
sirni.cpp:7:5: note: 'int x [100000]' previously declared here
7 | int x[100000], nxt[10000001], p[10000001];
| ^
sirni.cpp:51:16: error: redefinition of 'int nxt [10000001]'
51 | int x[100000], nxt[10000001], p[10000001];
| ^~~
sirni.cpp:7:16: note: 'int nxt [10000001]' previously declared here
7 | int x[100000], nxt[10000001], p[10000001];
| ^~~
sirni.cpp:51:31: error: redefinition of 'int p [10000001]'
51 | int x[100000], nxt[10000001], p[10000001];
| ^
sirni.cpp:7:31: note: 'int p [10000001]' previously declared here
7 | int x[100000], nxt[10000001], p[10000001];
| ^
sirni.cpp:52:25: error: redefinition of 'std::vector<std::pair<int, int> > w [10000001]'
52 | vector<pair<int, int> > w[10000001];
| ^
sirni.cpp:8:25: note: 'std::vector<std::pair<int, int> > w [10000001]' previously declared here
8 | vector<pair<int, int> > w[10000001];
| ^
sirni.cpp:54:5: error: redefinition of 'int P(int)'
54 | int P(int v){
| ^
sirni.cpp:10:5: note: 'int P(int)' previously defined here
10 | int P(int v){
| ^
sirni.cpp:59:5: error: redefinition of 'int main()'
59 | int main(){
| ^~~~
sirni.cpp:15:5: note: 'int main()' previously defined here
15 | int main(){
| ^~~~
sirni.cpp: In function 'int main()':
sirni.cpp:17:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
17 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
sirni.cpp:18:20: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | f(i, 0, n)scanf("%d", x + i), nxt[x[i]] = x[i];
| ~~~~~^~~~~~~~~~~~~
sirni.cpp: In function 'int main()':
sirni.cpp:61:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
61 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
sirni.cpp:62:20: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
62 | f(i, 0, n)scanf("%d", x + i), nxt[x[i]] = x[i];
| ~~~~~^~~~~~~~~~~~~