Problem findinggrass
User TheRaptor
Submission Time 2022-12-28 15:45:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from findinggrass.cpp:1:
findinggrass.cpp: In function ‘int main()’:
findinggrass.cpp:20:14: error: ‘s’ was not declared in this scope
20 | assert((val[s.begin()->second-1]<=0)||(val[s.rbegin()->second-1]<=0)||grass==-1);
| ^