0_0_22142688_6125\Main.java:1: 错误: 非法字符: '#'
#include <bits\stdc++.h>
^
0_0_22142688_6125\Main.java:1: 错误: 需要class, interface或enum
#include <bits\stdc++.h>
^
0_0_22142688_6125\Main.java:1: 错误: 非法字符: '\'
#include <bits\stdc++.h>
^
0_0_22142688_6125\Main.java:3: 错误: 需要class, interface或enum
set<int>st;
^
0_0_22142688_6125\Main.java:4: 错误: 需要class, interface或enum
vector<int>vec;
^
0_0_22142688_6125\Main.java:5: 错误: 需要class, interface或enum
const int maxn=1e5+7;
^
0_0_22142688_6125\Main.java:6: 错误: 需要class, interface或enum
int pre[maxn],nxt[maxn],val[maxn],dl[maxn];
^
0_0_22142688_6125\Main.java:7: 错误: 需要class, interface或enum
int main()
^
0_0_22142688_6125\Main.java:10: 错误: 需要class, interface或enum
scanf("%d",&t);
^
0_0_22142688_6125\Main.java:11: 错误: 需要class, interface或enum
while(t--)
^
0_0_22142688_6125\Main.java:14: 错误: 需要class, interface或enum
scanf("%d",&n);
^
0_0_22142688_6125\Main.java:15: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_22142688_6125\Main.java:15: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_22142688_6125\Main.java:15: 错误: 需要class, interface或enum
for(int i=1;i<=n;i++)
^
0_0_22142688_6125\Main.java:18: 错误: 需要class, interface或enum
pre[i]=i-1;
^
0_0_22142688_6125\Main.java:19: 错误: 需要class, interface或enum
nxt[i]=i+1;
^
0_0_22142688_6125\Main.java:20: 错误: 需要class, interface或enum
st.insert(i);
^
0_0_22142688_6125\Main.java:21: 错误: 需要class, interface或enum
}
^
0_0_22142688_6125\Main.java:23: 错误: 需要class, interface或enum
pre[n+1]=n;val[n+1]=maxn;
^
0_0_22142688_6125\Main.java:23: 错误: 需要class, interface或enum
pre[n+1]=n;val[n+1]=maxn;
^
0_0_22142688_6125\Main.java:24: 错误: 需要class, interface或enum
int pre1,nxt1;
^
0_0_22142688_6125\Main.java:25: 错误: 需要class, interface或enum
while(st.size()>0)
^
0_0_22142688_6125\Main.java:28: 错误: 需要class, interface或enum
for(auto &x:st)
^
0_0_22142688_6125\Main.java:30: 错误: 需要class, interface或enum
pre1=pre[x];nxt1=nxt[x];
^
0_0_22142688_6125\Main.java:31: 错误: 需要class, interface或enum
if(val[pre1]>val[x])vec.push_back(pre1),vec.push_back(x);
^
0_0_22142688_6125\Main.java:32: 错误: 需要class, interface或enum
if(val[x]>val[nxt1])vec.push_back(x),vec.push_back(nxt1);
^
0_0_22142688_6125\Main.java:33: 错误: 需要class, interface或enum
}
^
0_0_22142688_6125\Main.java:35: 错误: 需要class, interface或enum
for(auto &x:vec)
^
0_0_22142688_6125\Main.java:38: 错误: 需要class, interface或enum
pre1=pre[x];nxt1=nxt[x];
^
0_0_22142688_6125\Main.java:39: 错误: 需要class, interface或enum
nxt[pre1]=nxt1;
^
0_0_22142688_6125\Main.java:40: 错误: 需要class, interface或enum
pre[nxt1]=pre1;
^
0_0_22142688_6125\Main.java:41: 错误: 需要class, interface或enum
st.insert(pre1);
^
0_0_22142688_6125\Main.java:42: 错误: 需要class, interface或enum
dl[x]=1;
^
0_0_22142688_6125\Main.java:43: 错误: 需要class, interface或enum
}
^
0_0_22142688_6125\Main.java:46: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])
^
0_0_22142688_6125\Main.java:46: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])
^
0_0_22142688_6125\Main.java:46: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])
^
0_0_22142688_6125\Main.java:48: 错误: 需要class, interface或enum
printf("%d\n",cnt);
^
0_0_22142688_6125\Main.java:49: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])printf("%d ",val[i]);
^
0_0_22142688_6125\Main.java:49: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])printf("%d ",val[i]);
^
0_0_22142688_6125\Main.java:49: 错误: 需要class, interface或enum
for(int i=nxt[0];i!=n+1;i=nxt[i])printf("%d ",val[i]);
^
0_0_22142688_6125\Main.java:50: 错误: 需要class, interface或enum
puts("");
^
0_0_22142688_6125\Main.java:51: 错误: 需要class, interface或enum
}
^
0_0_22142688_6125\Main.java:53: 错误: 需要class, interface或enum
}
^
44 个错误
|