F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_36718894_12004.cpp:21:1: error: 'll' does not name a type
 ll res;
 ^
0_0_36718894_12004.cpp: In function 'void get(int, int)':
0_0_36718894_12004.cpp:25:1: error: 'res' was not declared in this scope
 res += 2*d[x][i]; // dis
 ^
0_0_36718894_12004.cpp: At global scope:
0_0_36718894_12004.cpp:31:1: error: 'll' does not name a type
 ll gcd(ll a, ll b){return b == 0 ? a : gcd(b, a%b);}
 ^
0_0_36718894_12004.cpp: In function 'int main()':
0_0_36718894_12004.cpp:51:1: error: 'res' was not declared in this scope
 res = 0;
 ^
0_0_36718894_12004.cpp:74:1: error: 'll' was not declared in this scope
 ll all = 1ll*(t + 1) * (t + 1);
 ^
0_0_36718894_12004.cpp:75:4: error: expected ';' before 'g'
 ll g = gcd(all, res);
    ^
0_0_36718894_12004.cpp:76:27: error: 'g' was not declared in this scope
 printf("%lld/%lld\n", res/g, all/g);
                           ^
0_0_36718894_12004.cpp:76:30: error: 'all' was not declared in this scope
 printf("%lld/%lld\n", res/g, all/g);
                              ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-05-19 12:26:45, Gzip enabled