[Assorted-commits] SF.net SVN: assorted: [832] configs/trunk/src/topcoder/template.cpp
Brought to you by:
yangzhang
|
From: <yan...@us...> - 2008-06-02 00:13:42
|
Revision: 832
http://assorted.svn.sourceforge.net/assorted/?rev=832&view=rev
Author: yangzhang
Date: 2008-06-01 17:13:50 -0700 (Sun, 01 Jun 2008)
Log Message:
-----------
small macro bug
Modified Paths:
--------------
configs/trunk/src/topcoder/template.cpp
Modified: configs/trunk/src/topcoder/template.cpp
===================================================================
--- configs/trunk/src/topcoder/template.cpp 2008-06-02 00:13:06 UTC (rev 831)
+++ configs/trunk/src/topcoder/template.cpp 2008-06-02 00:13:50 UTC (rev 832)
@@ -74,7 +74,7 @@
inline int powll(ll a, ll b) { return ll( std::pow(double(a), double(b)) ); }
template<typename T> inline void pl(const T & x) { cout << x << endl; }
template<typename T, typename U> inline pair<T,U> mkpair(T t, U u) { return make_pair(t,u); }
-#define pp(x) cout << #x << " = " << x << endl;
+#define pp(x) cout << #x << " = " << (x) << endl;
inline ll gcd(ll a, ll b) {
if (a < 0 && b < 0) return gcd(-a,-b);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|