koala.cpp: In function 'int maxValue(int, int)':
koala.cpp:26:5: error: 'set' was not declared in this scope; did you mean 'std::set'?
26 | set<int> sat;
| ^~~
| std::set
In file included from /usr/include/c++/10/set:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:87,
from koala.cpp:1:
/usr/include/c++/10/bits/stl_set.h:94:11: note: 'std::set' declared here
94 | class set
| ^~~
koala.cpp:26:9: error: expected primary-expression before 'int'
26 | set<int> sat;
| ^~~
koala.cpp:31:9: error: 'sat' was not declared in this scope
31 | sat.insert(i);
| ^~~
koala.cpp:35:11: error: 'sat' was not declared in this scope
35 | while(sat.size() != 1){
| ^~~
koala.cpp:57:14: error: expected ';' before 'in'
57 | for(int i in sat) return i;
| ^~~
| ;
koala.cpp:57:17: error: expected ';' before 'sat'
57 | for(int i in sat) return i;
| ^~~~
| ;
koala.cpp:57:18: error: 'sat' was not declared in this scope
57 | for(int i in sat) return i;
| ^~~