fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. template <typename T>
  6. size_t Align(T*)
  7. {
  8. return 20 - 10 * (sizeof(T) < 16);
  9. }
  10.  
  11.  
  12. int main() {
  13. // your code goes here
  14. int i;
  15. char j;
  16. char f[1000];
  17.  
  18. std::cout << Align(&i) << std::endl;
  19. std::cout << Align(&j) << std::endl;
  20. std::cout << Align(&f) << std::endl;
  21. return 0;
  22. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
10
10
20