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_20621905_28020.cpp: In function 'int main()':
0_0_20621905_28020.cpp:20:55: error: expected primary-expression before '?' token
             for (int j = i + 1; j <= n && flag; j++) {?
                                                       ^
0_0_20621905_28020.cpp:21:20: error: expected primary-expression before 'left'
                 ll left = y[i] - z[j];
                    ^
0_0_20621905_28020.cpp:21:20: error: expected ':' before 'left'
0_0_20621905_28020.cpp:21:25: error: assignment of function 'std::ios_base& std::left(std::ios_base&)'
                 ll left = y[i] - z[j];
                         ^
0_0_20621905_28020.cpp:21:25: error: cannot convert 'll {aka long long int}' to 'std::ios_base&(std::ios_base&)' in assignment
0_0_20621905_28020.cpp:24:22: error: assignment of function 'std::ios_base& std::left(std::ios_base&)'
                 left += INF;
                      ^
0_0_20621905_28020.cpp:24:22: error: cannot convert 'std::ios_base& (*)(std::ios_base&)' to 'std::ios_base&(std::ios_base&)' in assignment
0_0_20621905_28020.cpp:26:22: error: lvalue required as decrement operand
                 left --;
                      ^
0_0_20621905_28020.cpp:27:41: error: invalid operands of types 'std::ios_base&(std::ios_base&)' and 'll {aka long long int}' to binary 'operator/'
                 if (right / xx > left / xx) flag = false;
                                         ^


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 08:47:52, Gzip enabled