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_35630519_9878.cpp: In function 'int judge(int, int)':
0_0_35630519_9878.cpp:10:29: error: 'sqrt' was not declared in this scope
     for(int i=2; i<=sqrt(sum); i++) 
                             ^
0_0_35630519_9878.cpp: In function 'void dfs(int)':
0_0_35630519_9878.cpp:18:13: error: 'cout' was not declared in this scope
             cout<<_array[i]<<' ';
             ^
0_0_35630519_9878.cpp:19:9: error: 'cout' was not declared in this scope
         cout<<_array[_max]<<endl;
         ^
0_0_35630519_9878.cpp:19:29: error: 'endl' was not declared in this scope
         cout<<_array[_max]<<endl;
                             ^
0_0_35630519_9878.cpp: In function 'int main(int, const char**)':
0_0_35630519_9878.cpp:44:5: error: 'cin' was not declared in this scope
     cin>>_max;
     ^
0_0_35630519_9878.cpp:45:33: error: 'memset' was not declared in this scope
     memset(book, 0, sizeof(book)); 
                                 ^
0_0_35630519_9878.cpp:47:5: error: 'cout' was not declared in this scope
     cout<<_count<<endl;
     ^
0_0_35630519_9878.cpp:47:19: error: 'endl' was not declared in this scope
     cout<<_count<<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-23 10:26:00, Gzip enabled