Problem lcm
User ZachTAD
Submission Time 2024-02-14 16:41:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp:35:2: error: stray ‘#’ in program
35 | }#include <iostream>
| ^
lcm.cpp:35:3: error: ‘include’ does not name a type
35 | }#include <iostream>
| ^~~~~~~
lcm.cpp:41:5: error: redefinition of ‘int a’
41 | int a;
| ^
lcm.cpp:7:5: note: ‘int a’ previously declared here
7 | int a;
| ^
lcm.cpp:42:5: error: redefinition of ‘int b’
42 | int b;
| ^
lcm.cpp:8:5: note: ‘int b’ previously declared here
8 | int b;
| ^
lcm.cpp:43:5: error: redefinition of ‘int p’
43 | int p;
| ^
lcm.cpp:9:5: note: ‘int p’ previously declared here
9 | int p;
| ^
lcm.cpp:46:5: error: redefinition of ‘int HCF(int, int)’
46 | int HCF(int a,int b) {
| ^~~
lcm.cpp:12:5: note: ‘int HCF(int, int)’ previously defined here
12 | int HCF(int a,int b) {
| ^~~
lcm.cpp:57:5: error: redefinition of