Problem reverseandmin
User JoshJuice
Submission Time 2025-09-19 14:17:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reverseandmin.cpp: In function ‘int main()’:
reverseandmin.cpp:36:11: error: conflicting declaration ‘std::set<long long int> s’
36 | set<ll> s;
| ^
reverseandmin.cpp:27:9: note: previous declaration as ‘ll s’
27 | ll n, s;
| ^
reverseandmin.cpp:37:37: error: request for member ‘insert’ in ‘s’, which is of non-class type ‘ll’ {aka ‘long long int’}
37 | for (ll x = s; x <= n; x *= 10) s.insert(x);
| ^~~~~~
reverseandmin.cpp:38:37: error: request for member ‘insert’ in ‘s’, which is of non-class type ‘ll’ {aka ‘long long int’}
38 | for (ll x = t; x <= n; x *= 10) s.insert(x);
| ^~~~~~
reverseandmin.cpp:17:17: error: request for member ‘size’ in ‘s’, which is of non-class type ‘ll’ {aka ‘long long int’}
17 | #define sz(a) a.size()
| ^~~~
reverseandmin.cpp:39:11: note: