Problem gcd
User 2Princes1Lance
Submission Time 2023-11-23 10:41:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:6:53: error: expected initializer before ‘while’
6 | void forward_test(int a, int b, int prime, int GCD) while (a > prime && b > prime){
| ^~~~~
gcd.cpp:31:2: error: ‘cout’ does not name a type
31 | cout << GCD;
| ^~~~
gcd.cpp:32:55: error: expected initializer before ‘while’
32 | void backward_test (int a, int b, int prime, int GCD) while (a > prime && b > prime){
| ^~~~~
gcd.cpp:42:2: error: ‘cout’ does not name a type
42 | cout << GCD;
| ^~~~
gcd.cpp: In function ‘int main()’:
gcd.cpp:49:13: error: ‘forward_test’ was not declared in this scope
49 | thread t1 (forward_test(a, b, 1, 1)
| ^~~~~~~~~~~~