Submission #1365418

#TimeUsernameProblemLanguageResultExecution timeMemory
1365418mrasool1665Magic Show (APIO24_show)C++20
Compilation error
0 ms0 KiB
//MRasol kheyri
//Iran -> Khorasan -> ferdows -> Baghestan
//15/2/1405
//vasate azmoonima...
#include<bits/stdc++.h>
#include "Bob.h"
using namespace std ;
typedef long long ll ;
#define el '\n'
const ll maxn = 1e6 + 100 ;
const ll prime = 67 ;
ll n = 5000 ;
ll par[maxn] , ok[maxn] ;
ll Bob(vector<pair<int,int>> V){
    fill(par,par+n,-1) ;
    for(ll i = 0 ; i < V.size() ; i++){
        ll u = min(V[i].first,V[i].second) , B = max(V[i].fisrt,V[i].second) ;
        u-- , v-- ;
        par[v] = u ;
    }
    ll x = 0 ;
    for(ll i = 2 ; i < n ; i++){
        ll bit = i%prime ;
        if(par[i] == -1 || ok[bit]){continue;}
        ok[bit] = 1 ;
        ll b = ((i-1)/2) + 1 ;
        if(b <= par[i]){
            x += 1<<bit ;
        }
    }
    return x ;
}
//MRasol kheyri
//Iran -> Khorasan -> ferdows -> Baghestan
//15/2/1405
//vasate azmoonima...
#include<bits/stdc++.h>
#include "Bob.h"
using namespace std ;
typedef long long ll ;
#define el '\n'
const ll maxn = 1e6 + 100 ;
const ll prime = 67 ;
ll n = 5000 ;
ll par[maxn] , ok[maxn] ;
ll Bob(vector<pair<int,int>> V){
    fill(par,par+n,-1) ;
    for(ll i = 0 ; i < V.size() ; i++){
        ll u = min(V[i].first,V[i].second) , B = max(V[i].fisrt,V[i].second) ;
        u-- , v-- ;
        par[v] = u ;
    }
    ll x = 0 ;
    for(ll i = 2 ; i < n ; i++){
        ll bit = i%prime ;
        if(par[i] == -1 || ok[bit]){continue;}
        ok[bit] = 1 ;
        ll b = ((i-1)/2) + 1 ;
        if(b <= par[i]){
            x += 1<<bit ;
        }
    }
    return x ;
}

Compilation message (stderr)

# 1번째 컴파일 단계

Alice.cpp: In function 'll Bob(std::vector<std::pair<int, int> >)':
Alice.cpp:17:59: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type' {aka 'struct std::pair<int, int>'} has no member named 'fisrt'; did you mean 'first'?
   17 |         ll u = min(V[i].first,V[i].second) , B = max(V[i].fisrt,V[i].second) ;
      |                                                           ^~~~~
      |                                                           first
Alice.cpp:18:15: error: 'v' was not declared in this scope
   18 |         u-- , v-- ;
      |               ^