Problem gcd
User meal
Submission Time 2024-11-06 14:46:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:12:27: error: found ‘:’ in nested-name-specifier, expected ‘::’
12 | for (int i = 0; i <= less: i ++){
| ^
| ::
gcd.cpp:12:23: error: ‘less’ is not a class, namespace, or enumeration
12 | for (int i = 0; i <= less: i ++){
| ^~~~
gcd.cpp:18:1: error: expected primary-expression before ‘}’ token
18 | }
| ^
gcd.cpp:17:12: error: expected ‘)’ before ‘}’ token
17 | cout << i;
| ^
| )
18 | }
| ~
gcd.cpp:12:6: note: to match this ‘(’
12 | for (int i = 0; i <= less: i ++){
| ^
gcd.cpp:18:1: error: expected primary-expression before ‘}’ token
18 | }
| ^