Problem | treasurehunt |
---|---|
User | PlayVoltz |
Submission Time | 2024-07-07 21:27:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
treasurehunt.cpp: In function ‘int32_t main()’:
treasurehunt.cpp:35:60: error: ‘s’ was not declared in this scope
35 | for (int i=1; i<=n; ++i)cin>>vect[i], vect[i]+=vect[i-1], s.insert(vect[i]);
| ^
treasurehunt.cpp:36:23: error: ‘s’ was not declared in this scope
36 | for (auto a:vect)if (s.find(a+p)!=s.end()&&s.find(a+p+q)!=s.end()&&s.find(a+p+q+r)!=s.end()){cout<<"Yes";return 0;}
| ^