제출 #1173010

#제출 시각아이디문제언어결과실행 시간메모리
1173010Robert_junior9월 (APIO24_september)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) x.begin(), x.end()
#define ins insert
#define pb push_back
#define F first
#define S second
const int N = 2e5 + 7, M = 5e5 + 7, k = 640;
const int mod = 1e9 + 7;
int cnt[N];
int solve(int N, int M, std::vector<int> F, std::vector<std::vector<int>> S){
    for(int i = 0; i < N; i++){
        cnt[i] = 0;
    }
    int cur = 0;
    int ans = 0;
    int j = 0;
    while(j < N - 1){
        for(int i = 0; i < M; i++){
            cnt[S[i][j]]++;
            if(cnt[S[i][j]] == M) cur++;
        }
        if(cur == j + 1) ans++;
        j++;
    }
    return ans;
}

컴파일 시 표준 에러 (stderr) 메시지

/usr/bin/ld: /tmp/ccUBzv6i.o: in function `mtbpdhr2zxjo1o4i9oreohsbuzzl4s6u::taskcase()':
grader.cpp:(.text+0x50d): undefined reference to `solve(int, int, std::vector<int, std::allocator<int> >, std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >)'
collect2: error: ld returned 1 exit status