Submission #1327479

#TimeUsernameProblemLanguageResultExecution timeMemory
1327479michael12게임 (IOI14_game)C++20
Compilation error
0 ms0 KiB
#include "game.h"
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define int long long
using namespace std;
const int inf = 1e9 + 10;
const int maxn = 2e5 + 5;
int a[1505];
memset(a, 0, sizeof(a));
void initialize(int n){
}
int hasEdge(int u, int v){
    int T;
    a[max(u, v)] += 1;
    return a[max(u, v)] == max(u, v);
}

Compilation message (stderr)

game.cpp:11:7: error: expected constructor, destructor, or type conversion before '(' token
   11 | memset(a, 0, sizeof(a));
      |       ^