fork(3) download
  1. #include <iostream>
  2. #include <bitset>
  3. using namespace std;
  4.  
  5. template <size_t bitsetsize>
  6. void ABC(bitset<bitsetsize> a){
  7. cout << bitsetsize << endl;
  8. }
  9.  
  10. int main() {
  11. bitset<42> b1;
  12. bitset<35> b2;
  13. ABC(b1);
  14. ABC(b2);
  15. return 0;
  16. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
42
35