0_0_20672007_9861.cpp:1:9: error: '__int64' was not declared in this scope
int gcd(__int64 a,__int64 b)
^
0_0_20672007_9861.cpp:1:19: error: '__int64' was not declared in this scope
int gcd(__int64 a,__int64 b)
^
0_0_20672007_9861.cpp:1:28: error: expression list treated as compound expression in initializer [-fpermissive]
int gcd(__int64 a,__int64 b)
^
0_0_20672007_9861.cpp:2:1: error: expected ',' or ';' before '{' token
{
^
0_0_20672007_9861.cpp: In function 'int main()':
0_0_20672007_9861.cpp:8:5: error: '__int64' was not declared in this scope
__int64 a[10005];
^
0_0_20672007_9861.cpp:9:18: error: 'scanf' was not declared in this scope
scanf("%d",&t);
^
0_0_20672007_9861.cpp:15:28: error: 'a' was not declared in this scope
scanf("%I64d",&a[i]);
^
0_0_20672007_9861.cpp:18:21: error: expected ';' before 'p'
__int64 p=a[i]*a[i+1];
^
0_0_20672007_9861.cpp:19:13: error: 'a' was not declared in this scope
a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
^
0_0_20672007_9861.cpp:19:20: error: 'p' was not declared in this scope
a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
^
0_0_20672007_9861.cpp:19:37: error: 'gcd' cannot be used as a function
a[i+1]=p/gcd(a[i],a[i+1]); //用每两个数的后一个数保存这两个数的最小公倍数
^
0_0_20672007_9861.cpp:21:26: error: 'a' was not declared in this scope
printf("%I64d\n",a[n-1]);
^
0_0_20672007_9861.cpp:21:32: error: 'printf' was not declared in this scope
printf("%I64d\n",a[n-1]);
^
|