Submission #617571

#TimeUsernameProblemLanguageResultExecution timeMemory
617571Sergio_2357Toy Train (IOI17_train)C++17
Compilation error
0 ms0 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) { seedr(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:10:5: error: 'seedr' was not declared in this scope; did you mean 'seed48'?
   10 |     seedr(time(0));
      |     ^~~~~
      |     seed48
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++)
      |                     ~~^~~~~~~~~~~~