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_37593028_15012.cpp: In function 'bool if_num(int)':
0_0_37593028_15012.cpp:2:23: error: 'pow' was not declared in this scope
  return(pow(i / 100, 3) + pow(i % 10, 3) + pow((i % 100 - i % 10) / 10, 3) == i);
                       ^
0_0_37593028_15012.cpp: In function 'int main()':
0_0_37593028_15012.cpp:7:2: error: 'vector' was not declared in this scope
  vector<int> data;
  ^
0_0_37593028_15012.cpp:7:9: error: expected primary-expression before 'int'
  vector<int> data;
         ^
0_0_37593028_15012.cpp:8:9: error: 'cin' was not declared in this scope
  while (cin >> prior >> last) {
         ^
0_0_37593028_15012.cpp:12:5: error: 'data' was not declared in this scope
     data.push_back(i);
     ^
0_0_37593028_15012.cpp:17:4: error: 'cout' was not declared in this scope
    cout << "no" << endl;
    ^
0_0_37593028_15012.cpp:17:20: error: 'endl' was not declared in this scope
    cout << "no" << endl;
                    ^
0_0_37593028_15012.cpp:20:24: error: 'data' was not declared in this scope
    for (int j = 0; j < data.size(); j++)
                        ^
0_0_37593028_15012.cpp:21:5: error: 'cout' was not declared in this scope
     cout << data[j] << ' ';
     ^
0_0_37593028_15012.cpp:22:4: error: 'cout' was not declared in this scope
    cout << endl;
    ^
0_0_37593028_15012.cpp:22: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-11-18 19:31:22, Gzip enabled