Submission #861446

#TimeUsernameProblemLanguageResultExecution timeMemory
861446hockyA Plus B (IOI23_aplusb)C++17
Compilation error
0 ms0 KiB
#include "aplusb.h" std::vector<int> smallest_sums(int N, std::vector<int> A, std::vector<int> B) { if(N == 1) return {0}; rep(i,0,N) { A[i] += B[i]; } return A; }

Compilation message (stderr)

aplusb.cpp: In function 'std::vector<int> smallest_sums(int, std::vector<int>, std::vector<int>)':
aplusb.cpp:5:6: error: 'i' was not declared in this scope
    5 |  rep(i,0,N) {
      |      ^
aplusb.cpp:5:2: error: 'rep' was not declared in this scope
    5 |  rep(i,0,N) {
      |  ^~~