Your example code does not have proper includes, but it is not clear if that is the real code since you would have more errors then, but if it is then they should look like this:
#include <stdio.h>
the other problem is that main
needs a return type:
int main()
More Related Contents:
- Unterminating c++ Program [closed]
- Why does this C++ snippet compile (non-void function does not return a value) [duplicate]
- How to include libraries in Visual Studio 2012?
- Resolution of std::chrono::high_resolution_clock doesn’t correspond to measurements
- How to include OpenSSL in Visual Studio
- Qt 5.1.1: Application failed to start because platform plugin “windows” is missing
- How to compile Qt 5 under Windows or Linux, 32 or 64 bit, static or dynamic on Visual Studio or g++
- error C2679: binary ‘
- MSVCP120d.dll missing
- How to convert char* to LPCWSTR?
- How can I get the position and draw rectangle using opencv?
- OpenCV unable to set up SVM Parameters
- Initializer list not working with vector in Visual Studio 2012? [duplicate]
- xxxxxx.exe is not a valid Win32 application
- How to set Visual Studio Filters for nested sub directory using cmake
- How do I compile for Windows XP with Visual Studio 2012?
- Reading and writing to the same file using the same fstream
- How to use _CRT_SECURE_NO_WARNINGS
- Building Qt5 with Visual Studio 2012 / Visual Studio 2013, and integrating with the IDE
- Is it valid to bind non-const lvalue-references to rvalues in C++ 11?(modified)
- How to add static libraries to a Visual studio project
- How to enforce the ‘override’ keyword?
- Use Visual Studio 2012 and compile with older platform toolset?
- C++11 std::mutex in Visual Studio 2012 deadlock when locked from DllMain()
- CMake and MsVS-NuGet
- Visual Studio 2013: CL.exe exited with code -1073741515
- Compiling Qt 4.8.x for Visual Studio 2012
- Getting an array of bytes out of Windows::Storage::Streams::IBuffer
- Tool to track #include dependencies [closed]
- conversion of 2D array to pointer-to-pointer