Submission #617572

#TimeUsernameProblemLanguageResultExecution timeMemory
617572Sergio_2357Toy Train (IOI17_train)C++17
0 / 100
8 ms856 KiB
#include "train.h" #include <bits/stdc++.h> using namespace std; #define int long long vector<signed> who_wins(vector<signed> a, vector<signed> r, vector<signed> u, vector<signed> v) { srand(time(0)); vector<signed> res(a.size()); for (int i = 0; i < res.size(); i++) res[i] = rand() % 2; return res; }

Compilation message (stderr)

train.cpp: In function 'std::vector<int> who_wins(std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
train.cpp:12:23: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for (int i = 0; i < res.size(); i++)
      |                     ~~^~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...