Actually my lecturer gave me some exercise. She wanted me to find what's the error of this coding. Can you guys please help me to find the error and make it a correct coding? ASAP
#include <iostream>
using namespace std;
const char = STAR = '*'
cont int PRIME = 71;
int main
{
int count, sum;
double x;
count = 1;
sum = count + PRIME;
x := 25.67;
newNum = count * ONE + 2;
sum + count = sum;
x = x + sum * COUNT;
cout << "count = " <<count<< " , sum = " <<sum << ", PRIME =" <<endl;
}
5 12 I:\C++\rexha.cpp [Error] expected unqualified-id before '=' token
9 1 I:\C++\rexha.cpp [Warning] extended initializer lists only available with -std=c++11 or -std=gnu++11
10 2 I:\C++\rexha.cpp [Error] expected primary-expression before 'int'
10 2 I:\C++\rexha.cpp [Error] expected '}' before 'int'
10 2 I:\C++\rexha.cpp [Error] expected ',' or ';' before 'int'
13 2 I:\C++\rexha.cpp [Error] 'count' does not name a type
14 2 I:\C++\rexha.cpp [Error] 'sum' does not name a type
15 2 I:\C++\rexha.cpp [Error] 'x' does not name a type
16 2 I:\C++\rexha.cpp [Error] 'newNum' does not name a type
17 2 I:\C++\rexha.cpp [Error] 'sum' does not name a type
18 2 I:\C++\rexha.cpp [Error] 'x' does not name a type
19 2 I:\C++\rexha.cpp [Error] 'cout' does not name a type
20 1 I:\C++\rexha.cpp [Error] expected declaration before '}' token