Problem gcd
User TienKai
Submission Time 2024-02-16 20:43:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:7:11: error: expected ‘;’ before ‘for’
7 | a = a % b
| ^
| ;
8 | for(int i = 1; i <= a && i <= b; i++){
| ~~~
gcd.cpp:8:20: error: ‘i’ was not declared in this scope
8 | for(int i = 1; i <= a && i <= b; i++){
| ^