Submission #1203689

#TimeUsernameProblemLanguageResultExecution timeMemory
1203689Khalid_AlabdullatifMagic Show (APIO24_show)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
const int mod=80*60;
vector<pair<int,int>> Alice(){
	int n=80*60;
    long long x = setN(2);

	vector<pair<int,int>>ans;
	ans.push_back({1,x});
	/*
	int a=srand(7)%mod+1,b=srand(7)%mod+1;
	ans.push_back({a,b});
	for(int i=1;i<=n;i++){

	}
	shuffle(.begin,.end9,mt19937(7));
    for(int i=0;i<60;i++){	
    	for(int j=0;j<80;j++){

    	}
    }
	*/
    return ans;
}
#include <bits/stdc++.h>
#include "Bob.h"

long long Bob(std::vector<std::pair<int,int>> v){
	if(v[i].first==1)
		return v[i].second;
	return v[i].first;
}

Compilation message (stderr)

# 2번째 컴파일 단계

Bob.cpp: In function 'long long int Bob(std::vector<std::pair<int, int> >)':
Bob.cpp:5:14: error: 'i' was not declared in this scope
    5 |         if(v[i].first==1)
      |              ^
Bob.cpp:7:18: error: 'i' was not declared in this scope
    7 |         return v[i].first;
      |                  ^