fork(20) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Foo
  5. {
  6. bool _b;
  7. uint32_t _i;
  8. };
  9.  
  10. struct Bar
  11. {
  12. uint32_t _i;
  13. bool _b;
  14. };
  15.  
  16. int main() {
  17. // your code goes here
  18.  
  19. static_assert(sizeof(Foo) == sizeof(Bar), "The structures should be the same size.");
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3092KB
stdin
Standard input is empty
stdout
Standard output is empty