Advertisement
dmkozyrev

temp.cpp

May 10th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. /*
  2. temp.cpp: In function ‘int main()’:
  3. temp.cpp:8:32: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t {aka long int}’ [-Wformat=]
  4.      printf("%lld\n", int64_t(0));
  5. */
  6.  
  7.  
  8. #include <bits/stdc++.h>
  9.  
  10. int main() {
  11.     std::cout << "sizeof(long long int) = " << sizeof(long long int) << std::endl;
  12.     std::cout << "sizeof(int64_t)       = " << sizeof(int64_t) << std::endl;
  13.     printf("%lld\n", int64_t(0));
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement