This thread will list the questions asked by your colleagues.

Feel free to post directly here.

Please consult the forum before asking a question as it may have already been answered.

- I get an extremely large error message and most errors come from unitTest.cpp. Is the file corrupted?

If the error message at some point reads:

unitTest.cpp: In function 'int main(int, char**)':

unitTest.cpp:39:85: error: no match for 'operator==' in 'DFA::operator+(DFA&)((* dfa.std::vector<_Tp, _Alloc>::operator[]DFA*,std::allocator<DFA*> >(((i * 3u) + 1u)))) == DFA::operator+(DFA&)((*dfa.std::vector<_Tp, _Alloc>::operator[]<DFA*, std::allocator<DFA*> >(((i *3u) + 1u))))'

unitTest.cpp:39:85: note: candidates are:

DFA.hpp:21:7: note: bool DFA::operator==(DFA&)

DFA.hpp:21:7: note: no known conversion for argument 1 from 'DFA' to 'DFA&'

Then this is because you have defined the operator incorrectly. In my tests, at some point I compare two temporary objects ( A + B == B + A ). This kind of functionality must be supported by your code.

- After compiling the tests I got this :

Running 15 tests

----------------

1) Identity test: Is A = A ? Pass

2) Sum test: Is A + B = A + B ? Pass

3) Commutative test: Is A + B = B + A ? Pass

4) Concatenation test: Is A * B = A * B ? Pass

5) Concatenation identity equality test: Is A * A = A * A ? Pass

6) Inequality test: Is A != A ? Pass

7) Inequality test 2: Is A != B and A = B? Pass

8 ) Inequality test 3: Is A != B or A = B? Pass

9) Containment test: Is A <= A ? Pass

10) Union identity equality test: Is A + A = A ? Pass

11) Logic 1: If A <= B and A >= B then A = B? Fail

12) Logic 2: If A != B then A * B != B * A? Pass

13) Associative Law in Union: Is A + (B + C) = (A + B) + C? Pass

FINISHED CPU 0.00 MEM 0 MAXMEM -1 STALE 0

What is the meaning of the last line ?

The last line is the output of a control script. The first word of the last line indicates the exit status:

a) TIMEOUT - time limit is exhausted

b) MEM - memory limit is exhausted

c) HANGUP - hangup detected (see below)

d) SIGNAL - the timeout process was killed by a signal

For completeness, the last two tests are:

14) Associative Law in Concatenation: Is A * (B * C) = (A * B) * C?

15) Distributive Law: Is A * (B + C) = (A * B) + (A * C)?

- Why are the two last tests not displayed ?

A combination of FINISHED status without all the tests being displayed signifies a core dumped.