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_18664372_847.cpp: In function 'int main()':
0_0_18664372_847.cpp:4:2: error: 'cin' was not declared in this scope
  cin >> t;
  ^
0_0_18664372_847.cpp:10:4: error: 'cout' was not declared in this scope
    cout << "0" << endl;
    ^
0_0_18664372_847.cpp:10:19: error: 'endl' was not declared in this scope
    cout << "0" << endl;
                   ^
0_0_18664372_847.cpp:12:4: error: 'cout' was not declared in this scope
    cout << "1" << endl;
    ^
0_0_18664372_847.cpp:12:19: error: 'endl' was not declared in this scope
    cout << "1" << endl;
                   ^
0_0_18664372_847.cpp:14:16: error: 'gcd' was not declared in this scope
    k = gcd(m, n);
                ^
0_0_18664372_847.cpp:17:17: error: 'min' was not declared in this scope
     k = min(n, 4);
                 ^
0_0_18664372_847.cpp:18:5: error: 'ans' was not declared in this scope
     ans[i] = 5 + k;
     ^
0_0_18664372_847.cpp:21:5: error: 'ans' was not declared in this scope
     ans[m++] = 4;
     ^
0_0_18664372_847.cpp:25:5: error: 'ans' was not declared in this scope
     ans[m++] = n;
     ^
0_0_18664372_847.cpp:28:5: error: 'cout' was not declared in this scope
     cout << ans[i];
     ^
0_0_18664372_847.cpp:28:13: error: 'ans' was not declared in this scope
     cout << ans[i];
             ^
0_0_18664372_847.cpp:30:4: error: 'cout' was not declared in this scope
    cout << endl;
    ^
0_0_18664372_847.cpp:30:12: error: 'endl' was not declared in this scope
    cout << 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-06-26 21:26:44, Gzip enabled