| Problem | twochoices |
|---|---|
| User | dvd |
| Submission Time | 2025-04-13 11:42:41 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
twochoices.cpp: In function ‘int main()’:
twochoices.cpp:26:29: error: ‘bitset’ is not a member of ‘std’
26 | string s = std::bitset<32>(result).to_string(); //to binary
| ^~~~~~
twochoices.cpp:4:1: note: ‘std::bitset’ is defined in header ‘<bitset>’; did you forget to ‘#include <bitset>’?
3 | #include <algorithm>
+++ |+#include <bitset>
4 |
twochoices.cpp:26:48: error: request for member ‘to_string’ in ‘result’, which is of non-class type ‘int’
26 | string s = std::bitset<32>(result).to_string(); //to binary
| ^~~~~~~~~