Submission #1034137

#TimeUsernameProblemLanguageResultExecution timeMemory
1034137d4xnTricolor Lights (JOI24_tricolor)C++17
Compilation error
0 ms0 KiB
#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; int bruno(string u) { if (u[0] == u[1]) return 1; else return 2; }

Compilation message (stderr)

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