0_0_25113280_27799.cpp: In function 'int main()':
0_0_25113280_27799.cpp:20:9: error: 'LL' was not declared in this scope
LL sum = 0;
^
0_0_25113280_27799.cpp:21:12: error: expected ';' before 'sum2'
LL sum2 = 0;
^
0_0_25113280_27799.cpp:22:12: error: expected ';' before 'tmp'
LL tmp;
^
0_0_25113280_27799.cpp:25:29: error: 'tmp' was not declared in this scope
scanf("%I64d", &tmp);
^
0_0_25113280_27799.cpp:26:13: error: 'sum' was not declared in this scope
sum += max(tmp, -tmp);
^
0_0_25113280_27799.cpp:27:13: error: 'sum2' was not declared in this scope
sum2 += tmp * tmp;
^
0_0_25113280_27799.cpp:29:12: error: expected ';' before 'up'
LL up = n * sum2 - sum * sum; //分子分母都有4 所以直接提前消去
^
0_0_25113280_27799.cpp:30:12: error: expected ';' before 'down'
LL down = n;
^
0_0_25113280_27799.cpp:31:12: error: expected ';' before 'gcd'
LL gcd = __gcd(up, down); //__gcd库函数
^
0_0_25113280_27799.cpp:32:33: error: 'up' was not declared in this scope
printf("%I64d/%I64d\n", up / gcd, down / gcd);
^
0_0_25113280_27799.cpp:32:38: error: 'gcd' was not declared in this scope
printf("%I64d/%I64d\n", up / gcd, down / gcd);
^
0_0_25113280_27799.cpp:32:43: error: 'down' was not declared in this scope
printf("%I64d/%I64d\n", up / gcd, down / gcd);
^
|