vytvořil jsem si primitivní c++ program ale nede mi zkompilovat.
zde je zdroják
// ConsoleApplication3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int strany(int a);
int main()
{
int a;
cout<< "tenhle program"
<< "vypocita"
<< "obvod"
<< "ctverce"
<< endl;
cin>> a;
return 0;
{
int strany(int a);
{
int a=4*a;
return 4*a;
{
překladač mi háže tyhle chyby Error 1 error C1075: end of file found before the left brace '{' at 'c:\users\doma\documents\visual studio 2012\projects\application1\consoleapplication3\consoleapplication3\consoleapplication3.cpp(28)' was matched c:\users\doma\documents\visual studio 2012\projects\application1\consoleapplication3\consoleapplication3\consoleapplication3.cpp 31 1 ConsoleApplication3
Error 1 error C1075: end of file found before the left brace '{' at 'c:\users\doma\documents\visual studio 2012\projects\application1\consoleapplication3\consoleapplication3\consoleapplication3.cpp(28)' was matched c:\users\doma\documents\visual studio 2012\projects\application1\consoleapplication3\consoleapplication3\consoleapplication3.cpp 31 1 ConsoleApplication3