Skip to content

Commit

Permalink
Fix Wall
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy committed Oct 29, 2024
1 parent 8d0f16b commit dfddcdf
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions include/tcframe/driver/TestCaseDriver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class TestCaseDriver {
IOManipulator* ioManipulator,
Verifier* verifier,
MultipleTestCasesConfig multipleTestCasesConfig)
: ioManipulator_(ioManipulator)
, rawIOManipulator_(rawIOManipulator)
: rawIOManipulator_(rawIOManipulator)
, ioManipulator_(ioManipulator)
, verifier_(verifier)
, multipleTestCasesConfig_(move(multipleTestCasesConfig)) {}

Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/runner/grader/Grader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class Grader {
private:
map<int, double> getSubtaskPoints(const GradingOptions& options) {
map<int, double> subtaskPointsByIds;
for (int id = 1; id <= options.subtaskPoints().size(); id++) {
for (unsigned id = 1; id <= options.subtaskPoints().size(); id++) {
subtaskPointsByIds[id] = options.subtaskPoints()[id - 1];
}
if (subtaskPointsByIds.empty()) {
Expand Down
3 changes: 2 additions & 1 deletion include/tcframe/runner/os/OperatingSystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ class OperatingSystem {

private:
static void runCommand(const string& command) {
system(command.c_str());
int val = system(command.c_str());
std::cerr << "[tcframe] exit code: " << val << "\n";
}
};

Expand Down
4 changes: 2 additions & 2 deletions include/tcframe/spec/constraint/Subtask.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ struct Subtask {

Subtask(int id, double points, vector<Constraint> constraints)
: id_(id)
, points_(points)
, constraints_(move(constraints)) {}
, constraints_(move(constraints))
, points_(points) {}

int id() const {
return id_;
Expand Down
10 changes: 5 additions & 5 deletions include/tcframe/spec/core/Magic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ namespace tcframe {
struct VectorSize {
function<int()> size;

explicit VectorSize(function<int()> size)
: size(move(size)) {}
explicit VectorSize(function<int()> _size)
: size(move(_size)) {}
};

template<typename T>
Expand All @@ -55,9 +55,9 @@ struct MatrixSize {
function<int()> rows;
function<int()> columns;

MatrixSize(function<int()> rows, function<int()> columns)
: rows(move(rows))
, columns(move(columns)) {}
MatrixSize(function<int()> _rows, function<int()> _columns)
: rows(move(_rows))
, columns(move(_columns)) {}
};

class VariableNamesExtractor {
Expand Down
4 changes: 2 additions & 2 deletions include/tcframe/spec/io/IOFormat.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct IOFormat {
if (a.size() != b.size()) {
return false;
}
for (int i = 0; i < a.size(); i++) {
for (unsigned i = 0; i < a.size(); i++) {
if (!a[i]->equals(b[i])) {
return false;
}
Expand All @@ -61,7 +61,7 @@ struct IOFormat {
if (a.size() != b.size()) {
return false;
}
for (int i = 0; i < a.size(); i++) {
for (unsigned i = 0; i < a.size(); i++) {
if (!equals(a[i], b[i])) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/spec/io/LinesIOSegment.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct LinesIOSegment : public IOSegment {
if (variables_.size() != o.variables_.size()) {
return false;
}
for (int i = 0; i < variables_.size(); i++) {
for (unsigned i = 0; i < variables_.size(); i++) {
if (!variables_[i]->equals(o.variables_[i])) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion include/tcframe/spec/io/LinesIOSegmentManipulator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class LinesIOSegmentManipulator {

int size = getSize(segment);
for (int j = 0; j < size; j++) {
for (int i = 0; i < segment->variables().size(); i++) {
for (unsigned i = 0; i < segment->variables().size(); i++) {
Variable *variable = segment->variables()[i];
if (variable->type() == VariableType::VECTOR) {
if (i > 0) {
Expand Down
1 change: 0 additions & 1 deletion include/tcframe/spec/variable/Vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ class RawVectorImpl : public VectorImpl<string> {
, var_(&var) {}

void parseAndAddElementFrom(istream* in) {
int index = size();
string element;
Variable::parseRawLine(in, element);
var_->push_back(element);
Expand Down
2 changes: 1 addition & 1 deletion scripts/tcframe
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ build() {
exit 1
fi

g++ -std=c++17 -Wunused -Wall -Wshadow -Wunused-type -O3 -D__TCFRAME_SPEC_FILE__="\"$SPEC_FILE\"" -I "$TCFRAME_HOME/include" $TCFRAME_CXX_FLAGS -o "$RUNNER_EXEC" "$TCFRAME_HOME/src/tcframe/runner.cpp"
g++ -std=c++17 -Wunused -Wall -Wshadow -Wreturn-type -O3 -D__TCFRAME_SPEC_FILE__="\"$SPEC_FILE\"" -I "$TCFRAME_HOME/include" $TCFRAME_CXX_FLAGS -o "$RUNNER_EXEC" "$TCFRAME_HOME/src/tcframe/runner.cpp"
echo_colored "Build OK" 32
}

Expand Down

0 comments on commit dfddcdf

Please sign in to comment.