Giter Site home page Giter Site logo

debug.h's Introduction

debug.h

A short header file for debugging in competitive programming.

It requires c++20.

Possible output for test.cpp:

test.cpp:12: (vector<int>{}) = ([])
test.cpp:13: (1, 1 + 1, 1.0, 1.0 / 2, 'a', "a", "a"s, true) = (1, 2, 1, 0.5, a, a, a, 1)
test.cpp:14: (vector({3, 1, 4, 1, 5})) = ([3, 1, 4, 1, 5])
test.cpp:15: (pair(1, 2.0)) = (1, 2)
test.cpp:16: (pair(pair(1, "a"), pair(3, 4 / 2.))) = ((1, a), (3, 2))
test.cpp:17: (tuple(3, 4, 5)) = (3, 4, 5)
test.cpp:18: (pair(tuple(3, 2, 4, pair(1, 2)), vector({pair(1, 2), pair(3, 4), pair(5, 6)}))) = ((3, 2, 4, (1, 2)), [(1, 2), (3, 4), (5, 6)])
test.cpp:19: (vector<bool>{true, false, true}) = ([1, 0, 1])
test.cpp:20: (bitset<10>(12)) = (0000001100)
test.cpp:21: (new int()) = (0x55cef9d5ef50)
test.cpp:22: (array<int, 4>{1, 2, 3, 4}) = ([1, 2, 3, 4])

debug.h's People

Contributors

heltion avatar

Stargazers

 avatar mingy avatar widsnoy avatar Beacon Zhang avatar Dhruv Mishra avatar Aِl-Mi'raj avatar Saurabh Chaudhary avatar tLLWtG avatar Naveen SK avatar nuoyanli avatar Anak1st avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.