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_17234191_11020.cpp: In function 'int main()':
0_0_17234191_11020.cpp:43:44: error: 'x' was not declared in this scope
   for(int j = 1; j <= m; ++j) scanf("%d", &x), q.insert(x);
                                            ^
0_0_17234191_11020.cpp:46:27: error: could not convert 'q.std::set<_Key, _Compare, _Alloc>::find<int, std::less<int>, std::allocator<int> >((* &(a[j] - a[i])))' from 'std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}' to 'bool'
     if(q.find(a[j] - a[i])) ok[i][j] = 1;
                           ^


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 13:53:23, Gzip enabled