#include <stdio.h>
#include <iostream>
#include <string.h>
#include <cctype>
usingnamespace std;
int main()
{
constint MaxLoopCnt = 4;
int loopiteration = 0;
do
{
++loopiteration;
) while (loopiteration < MaxLoopCnt) ; // this is ? the err
return 0;
}
I shortened the below complier messages:
In function 'int main()':
cpp:16:2: error: expected primary-expression before ')' token
cpp:16:2: error: expected ';' before ')' token
cpp:19:1: error: expected 'while' at end of input
cpp:19:1: error: expected '(' at end of input
cpp:19:1: error: expected primary-expression at end of input
cpp:19:1: error: expected ')' at end of input
cpp:19:1: error: expected ';' at end of input
cpp:19:1: error: expected '}' at end of input
Process terminated with status 1 (0 minute(s), 0 second(s))
8 error(s), 0 warning(s) (0 minute(s), 0 second(s))