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_32674684_32056.cpp:5:1: error: '_int64' does not name a type
 _int64 get_int64length(_int64 n)
 ^
0_0_32674684_32056.cpp:17:1: error: '_int64' does not name a type
 _int64 gcd(_int64 n, _int64 m)
 ^
0_0_32674684_32056.cpp: In function 'int main()':
0_0_32674684_32056.cpp:30:2: error: '_int64' was not declared in this scope
  _int64 n, yx, wx;
  ^
0_0_32674684_32056.cpp:31:9: error: 'n' was not declared in this scope
  cin >> n;
         ^
0_0_32674684_32056.cpp:33:14: error: expected ';' before 'i'
  for (_int64 i = 0; i < n; i++)
              ^
0_0_32674684_32056.cpp:33:21: error: 'i' was not declared in this scope
  for (_int64 i = 0; i < n; i++)
                     ^
0_0_32674684_32056.cpp:38:4: error: 'yx' was not declared in this scope
    yx = 0;
    ^
0_0_32674684_32056.cpp:39:4: error: 'wx' was not declared in this scope
    wx = 0;
    ^
0_0_32674684_32056.cpp:40:16: error: expected ';' before 'j'
    for (_int64 j = 3; j < s.find(')'); j++)
                ^
0_0_32674684_32056.cpp:40:23: error: 'j' was not declared in this scope
    for (_int64 j = 3; j < s.find(')'); j++)
                       ^
0_0_32674684_32056.cpp:42:11: error: expected ';' before 'fm'
    _int64 fm = pow(10, get_int64length(wx)) - 1;
           ^
0_0_32674684_32056.cpp:43:4: error: 'fm' was not declared in this scope
    fm = fm * pow(10, get_int64length(yx));
    ^
0_0_32674684_32056.cpp:43:40: error: 'get_int64length' was not declared in this scope
    fm = fm * pow(10, get_int64length(yx));
                                        ^
0_0_32674684_32056.cpp:44:11: error: expected ';' before 'fz'
    _int64 fz = yx * pow(10, get_int64length(wx)) + wx - yx;
           ^
0_0_32674684_32056.cpp:45:12: error: 'fz' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
            ^
0_0_32674684_32056.cpp:45:27: error: 'gcd' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
                           ^
0_0_32674684_32056.cpp:49:4: error: 'yx' was not declared in this scope
    yx = 0;
    ^
0_0_32674684_32056.cpp:50:4: error: 'wx' was not declared in this scope
    wx = 0;
    ^
0_0_32674684_32056.cpp:51:16: error: expected ';' before 'j'
    for (_int64 j = 2; j < s.find('('); j++)
                ^
0_0_32674684_32056.cpp:51:23: error: 'j' was not declared in this scope
    for (_int64 j = 2; j < s.find('('); j++)
                       ^
0_0_32674684_32056.cpp:53:16: error: expected ';' before 'j'
    for (_int64 j = s.find('(') + 1; j < s.find(')'); j++)
                ^
0_0_32674684_32056.cpp:53:37: error: 'j' was not declared in this scope
    for (_int64 j = s.find('(') + 1; j < s.find(')'); j++)
                                     ^
0_0_32674684_32056.cpp:55:11: error: expected ';' before 'fm'
    _int64 fm = pow(10, get_int64length(wx)) - 1;
           ^
0_0_32674684_32056.cpp:56:4: error: 'fm' was not declared in this scope
    fm = fm * pow(10, get_int64length(yx));
    ^
0_0_32674684_32056.cpp:56:40: error: 'get_int64length' was not declared in this scope
    fm = fm * pow(10, get_int64length(yx));
                                        ^
0_0_32674684_32056.cpp:57:11: error: expected ';' before 'fz'
    _int64 fz = yx * pow(10, get_int64length(wx)) + wx - yx;
           ^
0_0_32674684_32056.cpp:58:12: error: 'fz' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
            ^
0_0_32674684_32056.cpp:58:27: error: 'gcd' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
                           ^
0_0_32674684_32056.cpp:62:4: error: 'yx' was not declared in this scope
    yx = 0;
    ^
0_0_32674684_32056.cpp:63:4: error: 'wx' was not declared in this scope
    wx = 0;
    ^
0_0_32674684_32056.cpp:64:16: error: expected ';' before 'j'
    for (_int64 j = 2; j < s.length(); j++)
                ^
0_0_32674684_32056.cpp:64:23: error: 'j' was not declared in this scope
    for (_int64 j = 2; j < s.length(); j++)
                       ^
0_0_32674684_32056.cpp:66:11: error: expected ';' before 'fm'
    _int64 fm = pow(10, get_int64length(yx));
           ^
0_0_32674684_32056.cpp:67:11: error: expected ';' before 'fz'
    _int64 fz = yx;
           ^
0_0_32674684_32056.cpp:68:12: error: 'fz' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
            ^
0_0_32674684_32056.cpp:68:21: error: 'fm' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
                     ^
0_0_32674684_32056.cpp:68:27: error: 'gcd' was not declared in this scope
    cout << fz / gcd(fm, fz) << '/' << fm / gcd(fm, fz) << endl;
                           ^


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-11-18 12:29:04, Gzip enabled