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_33760280_12135.cpp: In function 'int main()':
0_0_33760280_12135.cpp:11:14: error: no match for 'operator=' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int')
         cout = 1;
              ^
0_0_33760280_12135.cpp:11:14: note: candidate is:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_33760280_12135.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-11-30 02:36:45, Gzip enabled