Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Trace
//g++ 5.4.0 #include <bits/stdc++.h> using namespace std; #define TRACE #ifdef TRACE #define trace(...) __f(#__VA_ARGS__, __VA_ARGS__) template <typename Arg1> void __f(const char* name, Arg1&& arg1){ cout << name << " : " << arg1 << endl; } template <typename Arg1, typename... Args> void __f(const char* names, Arg1&& arg1, Args&&... args){ const char* comma = strchr(names + 1, ','); cout.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...); } #else #define trace(...) #endif int main() { ios_base::sync_with_stdio(0); cin.tie(NULL); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
pointer to template function
Test 20(2020)
ContainerVector2
How to make stupid to my friend?
2222aaaa
sa
fastest input taking for large files
3
¡Arriba, Papalotes, Arriba!
Stream3