0_0_20932575_17895.cpp:1:59: error: stray '#' in program
<span style="font-family:FangSong_GB2312;font-size:18px;">#include <bits/stdc++.h>
^
0_0_20932575_17895.cpp:1:1: error: expected unqualified-id before '<' token
<span style="font-family:FangSong_GB2312;font-size:18px;">#include <bits/stdc++.h>
^
0_0_20932575_17895.cpp:32:1: error: 'vector' does not name a type
vector<LL>xs;
^
0_0_20932575_17895.cpp: In function 'int main()':
0_0_20932575_17895.cpp:36:20: error: 'scanf' was not declared in this scope
scanf("%lld",&n);
^
0_0_20932575_17895.cpp:38:5: error: 'xs' was not declared in this scope
xs.push_back(0);
^
0_0_20932575_17895.cpp:45:29: error: 'sort' was not declared in this scope
sort(xs.begin(),xs.end());
^
0_0_20932575_17895.cpp:46:39: error: 'unique' was not declared in this scope
auto it=unique(xs.begin(),xs.end());
^
0_0_20932575_17895.cpp:48:48: error: 'lower_bound' was not declared in this scope
sum[i]=lower_bound(xs.begin(),it,sum[i])-xs.begin()+1;
^
0_0_20932575_17895.cpp:49:27: error: 'memset' was not declared in this scope
memset(dp,0,sizeof(dp));
^
0_0_20932575_17895.cpp:59:26: error: 'printf' was not declared in this scope
printf("%lld\n",dp[n]);
^
0_0_20932575_17895.cpp: At global scope:
0_0_20932575_17895.cpp:61:2: error: expected unqualified-id before '<' token
}</span>
^
|