Submission #1034138

# Submission time Handle Problem Language Result Execution time Memory
1034138 2024-07-25T10:02:55 Z d4xn Tricolor Lights (JOI24_tricolor) C++17
Compilation error
0 ms 0 KB
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;

pair<string, int> anna(int n, string s) {
  string t(n, '.');
  
  if (s[0] == 'R') {
    if (s[1] == 'R') t[0] = t[1] = 'G';
    else if (s[1] == 'G') t[0] = t[1] = 'B';
    else t[0] = t[1] = 'G';
  }
  else if (s[0] == 'G') {
    if (s[1] == 'R') t[0] = t[1] = 'B';
    else if (s[1] == 'G') t[0] = t[1] = 'R';
    else t[0] = t[1] = 'R';
  }
  else {
    if (s[1] == 'R') t[0] = t[1] = 'G';
    else if (s[1] == 'G') t[0] = t[1] = 'R';
    else t[0] = t[1] = 'R';
  }

  for (int i = 2; i < n; i++) {
    t[i] = (s[i] == 'R' ? 'G' : 'R');
  }

  return make_pair(t, min(130, n));
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;

void init(int N, int l);

int bruno(string u) {
  if (u[0] == u[1]) return 1;
  else return 2;
}

Compilation message

/usr/bin/ld: /tmp/ccx8zKo4.o: in function `main':
grader_bruno.cpp:(.text.startup+0x129): undefined reference to `init(int, int)'
collect2: error: ld returned 1 exit status