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_36761023_28951.cpp:17:2: error: stray '\243' in program
  double left, mid, rightŁ¬temp; 
  ^
0_0_36761023_28951.cpp:17:2: error: stray '\254' in program
0_0_36761023_28951.cpp: In function 'int main()':
0_0_36761023_28951.cpp:17:27: error: expected initializer before 'temp'
  double left, mid, rightŁ¬temp; 
                           ^
0_0_36761023_28951.cpp:22:19: error: assignment of function 'std::ios_base& std::right(std::ios_base&)'
   left = 0, right = 25; mid = 12.5;
                   ^
0_0_36761023_28951.cpp:22:19: error: cannot convert 'int' to 'std::ios_base&(std::ios_base&)' in assignment
0_0_36761023_28951.cpp:23:18: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'double' to binary 'operator-'
   while (right - left > 1e-5)
                  ^
0_0_36761023_28951.cpp:25:4: error: 'temp' was not declared in this scope
    temp = df(mid);
    ^
0_0_36761023_28951.cpp:32:11: error: assignment of function 'std::ios_base& std::right(std::ios_base&)'
     right = mid;
           ^
0_0_36761023_28951.cpp:32:11: error: cannot convert 'double' to 'std::ios_base&(std::ios_base&)' in assignment
0_0_36761023_28951.cpp:38:19: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'double' to binary 'operator+'
    mid = (right + left) / 2.0;
                   ^


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 03:02:28, Gzip enabled