Submission #1348236

#TimeUsernameProblemLanguageResultExecution timeMemory
1348236michael12Xoractive (IZhO19_xoractive)C++20
Compilation error
0 ms0 KiB
#include "interactive.h"
#include<iostream>
#include<vector>
#include<set>
#include<map>
#include<numeric>
#include<string>
#include<stack>
#include<queue>
#include<string.h>
#include<array>
#include<climits>
#include<algorithm>
#include<cmath>
using namespace std;
#define ff first
#define int long long
#define ss second
const int mx = 1500000;
#define int long long
const long long inf = 1e18;
#define endl '\n'
// namespace {
//     const int MAX_VALUE_OF_N = 100;
//     const int MAX_VALUE_OF_Q = 200;
//     int numberOfQueries = 0;
//     int n;
//     std::vector<int> a;

//     void wrong_answer(const char *MSG) {
//         printf("-1\n");
//         exit(0);
//     }
// }

// void query() {
//     numberOfQueries++;

//     if (numberOfQueries > MAX_VALUE_OF_Q) {
//         wrong_answer("Number of queries exceeded");
//     }
// }

// int ask(int position) {
//     query();
    
//     if (position < 1 || position > n) {
//         wrong_answer("Not correct position");
//     }
//     return a[position - 1];
// }
vector<int> guess(int pos){
    vector<int> g(pos);
    for(int i = 1; i <= pos; i++){
       g[i - 1] = ask(i);
    }
    return g;
}
// signed main(){
//   ios::sync_with_stdio(false);
//   cin.tie(nullptr);
//   cin >> n;
//   a.resize(n);
//   for(int i = 0; i < n; i++){
//    cin >> a[i];
//   }
//   vector<int> t = guess(n);
//   for(auto v : t){
//    cout << v << " ";
//   }
  


// }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccgPWkyr.o: in function `main':
grader.cpp:(.text.startup+0x1f4): undefined reference to `guess(int)'
collect2: error: ld returned 1 exit status