// 1 filename:cpp2011-1-19.cpp
// ver 0.1 June.10, 2014
// 2 original examples and/or notes:
// (c) ISO/IEC JTC1 SC22 WG21 N3242, April 12, 2011
// http://www.open-std.org/jtc1/sc22/wg21
//
// 3 compile and output mechanism:
// (c) Ogawa Kiyoshi, kaizen@gifu-u.ac.jp,
//
// 4 compile errors and/or wornings:
// 4.1(c) Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
// Target: x86_64-apple-darwin13.2.0,  Thread model: posix
// Command/Options: c++ -std=c++11 -stdlib=libc++ -Wall cpp2011-1-16a.cpp 
// (c) LLVM 2003-2009 University of Illinois at Urbana-Champaign.

// 4.2. g++-4.9 (GCC) 4.9.0 20131229 (experimental)
// Copyright (C) 2013 Free Software Foundation, Inc.
// This is free software; see the source for copying conditions.  There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// http://gcc.gnu.org/onlinedocs/gcc/Standards.html
// Command/Options: g++-4.9  -std=c++11  -Wall cpp2011-1-16a.cpp 
// Configuration:brew install gcc49
//
// 4.3. Visual Studio Express 2013, 
// (c) Microsoft http://www.visualstudio.com/
// SPEC:'most of C99/C11 that is a subset of ISO C++98/C++11'.
// http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2089423-c99-support
// Windows 7, .NET Framework
// (c) VMware, Inc.
// VMWare fusion 6
//
// 5. Hardware:  MacBook Pro, 
//(c) Intel http://ark.intel.com/products/37006/
//Core 2 Duo 2.53GHz, 8GB, 1067MHz DDR3
//
// 6. Special Thanks: Upper organizatios and 
// ISO/IEC JTC1 SC22 WG21, http://www.open-std.org/jtc1/sc22/wg21
// ITSCJ/IPSJ http://www.itscj.ipsj.or.jp/itscj_english/index.html
// Daido Universcity, http://www.daido-it.ac.jp/gakubugakka/computer/index.html
// IT planning Inc., http://www.itpl.co.jp/en/index.html
// Spancion Inc., http://www.spansion.com/
// SWEST: Summer Workshop on Embedded System Technologies , http://swest.toppers.jp
// CEST: Consortium for Embedded System Technology, http://www.ertl.jp/CEST/
// OSC:Open Source Conference, http://www.ospn.jp/

#include <iostream>
using namespace std;

int main()
{
int a, b;
/* ... */
a=1;
b=1;
	a = a + 32760 + b + 5;
	cout << a<<std::endl;
a = (((a + 32760) + b) + 5);
	cout << a<<std::endl;

a = ((a + b) + 32765);
	cout <<a<<std::endl;
a = ((a + 32765) + b);
	cout << a<<std::endl;
a = (a + (b + 32765));
	cout << a<< std::endl;
return a;
}
// output
//32767
//65533
//98299
//131065
//163831

