Submission #537948

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
5379482022-03-16 00:02:43couplefireWombats (IOI13_wombats)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
const int N = 5005;
const int M = 205;
const int MX = 1010;
const int INF = 0x3f3f3f3f;
int n, m, q;
int vert[N][M], hori[N][M], shori[N][M];
int seg[MX][M][M], best[M][M];
void calc(int f[M][M], int tl, int tr){
memset(f, INF, sizeof(int)*M*M);
for(int i = 1; i<=m; ++i)
for(int j = tl; j<=tr; ++j){
for(int k = 1; k<=m; ++k)
f[i][k] = (j==tl?abs(shori[tl][i]-shori[tl][k]):f[i][k]+vert[j-1][k]);
int lmn = f[i][1];
for(int k = 2; k<=m; ++k)
f[i][k] = min(f[i][k], lmn+shori[j][k]),
lmn = min(lmn, f[i][k]-shori[j][k]);
int rmn = f[i][m]+shori[j][m];
for(int k = m-1; k>=1; --k)
f[i][k] = min(f[i][k], rmn-shori[j][k]),
rmn = min(rmn, f[i][k]+shori[j][k]);
}
}
void comb(int f[M][M], int lf[M][M], int rf[M][M], int bruh[M]){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

grader.c: In function 'int main()':
grader.c:15:6: warning: variable 'res' set but not used [-Wunused-but-set-variable]
   15 |  int res;
      |      ^~~
/usr/bin/ld: /tmp/cciBnNGU.o: in function `main':
wombats.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccF0fkoQ.o:grader.c:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccF0fkoQ.o: in function `main':
grader.c:(.text.startup+0x129): undefined reference to `init'
/usr/bin/ld: grader.c:(.text.startup+0x194): undefined reference to `escape'
/usr/bin/ld: grader.c:(.text.startup+0x203): undefined reference to `changeH'
/usr/bin/ld: grader.c:(.text.startup+0x26d): undefined reference to `changeV'
collect2: error: ld returned 1 exit status