0_0_36893429_3885.cpp: In function 'int main()':
0_0_36893429_3885.cpp:28:5: error: 'vis' was not declared in this scope
vis[ss[i]]=i;
^
0_0_36893429_3885.cpp:39:34: error: 'class std::map<long long int, long long int>' has no member named 'begain'
for(map<ll,ll>::iterator it=mm.begain();it!=mm.end();it++){
^
0_0_36893429_3885.cpp:69:67: error: 'x' was not declared in this scope
int nn=lower_bound(dis[mm[num]].begin(),dis[mm[num]].end(),x)-dis[mm[num]].begin();
^
0_0_36893429_3885.cpp:70:29: error: 'LL' was not declared in this scope
LL ans=(x-dis[mm[num]][now])/s*n+mp[dis[mm[num]][now]];
^
0_0_36893429_3885.cpp:71:35: error: 'ans' was not declared in this scope
cout<<ans<<endl;
^
0_0_36893429_3885.cpp:76:4: error: 'else' without a previous 'if'
else cout<<-1<<endl;
^
|