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_30690226_8993.cpp: In function 'int main()':
0_0_30690226_8993.cpp:45:26: error: no match for 'operator=' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int')
                 else cout=1,lastx=room[i].x;
                          ^
0_0_30690226_8993.cpp:45:26: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_30690226_8993.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:58:11: note: std::basic_ostream<char>& std::basic_ostream<char>::operator=(const std::basic_ostream<char>&) <deleted>
     class basic_ostream : virtual public basic_ios<_CharT, _Traits>
           ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:58:11: note:   no known conversion for argument 1 from 'int' to 'const std::basic_ostream<char>&'


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-10-01 12:25:55, Gzip enabled