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_17402793_23041.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_17402793_23041.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_17402793_23041.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_17402793_23041.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_17402793_23041.cpp:6:10: error: #include expects "FILENAME" or <FILENAME>
 #include 
          ^
0_0_17402793_23041.cpp: In function 'int main()':
0_0_17402793_23041.cpp:12:16: error: 'scanf' was not declared in this scope
  scanf("%d", &t);
                ^
0_0_17402793_23041.cpp:17:26: error: 'log' was not declared in this scope
   cnt += ceil(1.0 * log(n) / log(2));
                          ^
0_0_17402793_23041.cpp:17:36: error: 'ceil' was not declared in this scope
   cnt += ceil(1.0 * log(n) / log(2));
                                    ^
0_0_17402793_23041.cpp:20:29: error: 'printf' was not declared in this scope
   printf("Case #%d: ", cas++);
                             ^
0_0_17402793_23041.cpp:21:3: error: 'cout' was not declared in this scope
   cout << ans-1 << " " << cnt << endl;;
   ^
0_0_17402793_23041.cpp:21:34: error: 'endl' was not declared in this scope
   cout << ans-1 << " " << cnt << 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-26 14:16:29, Gzip enabled