ID 5481881
User Псарев Александр Павлович
Time 22:15<< 13.10.2021 22:16 (9天 02:33) 22:17>>
Processing 22:16 ... 22:16 (6,25 秒)
File 5481881.cpp (CLang++ 5.0.0 + Address Sanitizer)
Contest 2 курс. Программирование на C++. Турнир 1, осень 2021
Problem C: Set
Testset
Limits Time: 1s Memory: 512Mb
Status  [?]
CE Compilation error
source | results
In file included from main.cpp:16:0:
set.h: In constructor 'Set::Set(const std::vector<long int>&)':
set.h:18:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < vec.size(); i++) {
                 ~~^~~~~~~~~~~~
set.h: In member function 'Set Set::Union(const Set&)':
set.h:29:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < s.S.size(); i++) {
                 ~~^~~~~~~~~~~~
set.h:35:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < this->S.size(); i++) {
                 ~~^~~~~~~~~~~~~~~~
set.h: In member function 'Set Set::Intersection(const Set&)':
set.h:46:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < s.S.size(); i++) {
                 ~~^~~~~~~~~~~~
set.h: In member function 'Set Set::Difference(const Set&)':
set.h:55:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < s.S.size(); i++) {
                 ~~^~~~~~~~~~~~
set.h: In member function 'Set Set::SymmetricDifference(const Set&)':
set.h:64:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < s.S.size(); i++) {
                 ~~^~~~~~~~~~~~
set.h:69:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < this->S.size(); i++) {
                 ~~^~~~~~~~~~~~~~~~
set.h: In member function 'bool Set::Contains(int64_t)':
set.h:82:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < this->S.size(); i++) {
                 ~~^~~~~~~~~~~~~~~~
set.h: In member function 'void Set::Remove(int64_t)':
set.h:90:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
 for (int i = 0; i < this->S.size(); i++) {
                 ~~^~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
0.063s 0.027s 9