记录详情

Compile Error

/in/foo.cc: In function 'void printGeneration(const std::vector<bool>&, int)':
/in/foo.cc:7:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < cells.size(); ++i) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc: In function 'std::vector<bool> evolveCells(const std::vector<bool>&, int, int)':
/in/foo.cc:17:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < cells.size(); ++i) {
                     ~~^~~~~~~~~~~~~~
/in/foo.cc:21:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if (i < cells.size() - 1 && cells[i + 1]) liveNeighbours++;
             ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:25:9: error: 'bitset' is not a member of 'std'
         std::bitset<7> binaryRule(rule);
         ^~~
/in/foo.cc:25:39: error: 'binaryRule' was not declared in this scope
         std::bitset<7> binaryRule(rule);
                                       ^

信息

递交者
类型
自测
语言
C++
递交时间
2024-05-15 22:52:01
评测时间
2024-05-15 22:52:01
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes