fork download
  1. #include <cstdio>
  2.  
  3. class Logger {
  4. public:
  5. template<typename T>
  6. static void d(char const TAG, T value)
  7. {
  8. char buffer[64];
  9. snprintf(buffer, sizeof(buffer), "%d", value);
  10. //__android_log_write(ANDROID_LOG_DEBUG, TAG, buffer);
  11. printf("%d", buffer);
  12. }
  13. };
  14.  
  15. int main() {
  16. Logger::d('k', 123312);
  17. return 0;
  18. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
-1076236736