Submission #1202305

#TimeUsernameProblemLanguageResultExecution timeMemory
1202305jk410마술쇼 (APIO24_show)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
typedef long long ll;
vector<pair<int,int>> Alice(){
    ll x = setN(5000);
    vector<pair<int,int>> ret;
    for (int i=2; i<=5000; i++)
        ret.push_back({i,x%(i-1)+1});
    return ret;
}
#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
typedef long long ll;
ll Bob(vector<pair<int,int>> v){
    ll x=0,m=1;
    for (auto i:v){
        ll n=i.second-1,r=i.first-1;
        while (x%n!=r)
            x+=m;
        m*=n/__gcd(m,n);
        if (m>)
    }
    return x;
}

Compilation message (stderr)

# 2번째 컴파일 단계

Bob.cpp: In function 'll Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:12:15: error: expected primary-expression before ')' token
   12 |         if (m>)
      |               ^
Bob.cpp:13:5: error: expected primary-expression before '}' token
   13 |     }
      |     ^