Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_868_1892_28433.cpp: In function 'int main()':
1_868_1892_28433.cpp:5:35: error: 'endl' was not declared in this scope
    std::cout<<(int)((a*a-b*b)/4)<<endl;
                                   ^
1_868_1892_28433.cpp:5:35: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 1_868_1892_28433.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^


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-06-17 15:31:54, Gzip enabled