1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//declare variables of integer type int x; int y; int z; //storing value in variables x = 25; y = 10; //adding numbers and store the result in sum z = x + y; //print the result cout << "The sum is "; cout << z; return 0;
1 2
Line 7: error: expected constructor, destructor, or type conversion before '=' token compilation terminated due to -Wfatal-errors.