Submission #100024

# Submission time Handle Problem Language Result Execution time Memory
100024 2019-03-09T06:40:55 Z lyc Broken Device (JOI17_broken_device) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
using namespace std;

void Anna( int N, long long X, int K, int P[] ){
//    for( int i = 0; i < N; i ++ ){
//        Set( i, 0 );
//    }
    for (int i = 0; i < 60; ++i) {
        int b = ((X & (1LL<<i)) > 0 ? 1 : 0);
        cout << 
        Set(2*i, b);
        Set(2*i+1, b);
    }
    for (int i = 120; i < N; ++i) {
        Set(i, 0);
    }
    //cout << X << endl;
}
#include <bits/stdc++.h>
using namespace std;

long long Bruno( int N, int A[] ){
    long long X = 0;
    for (int i = 0; i < 60; ++i) {
        if (A[2*i] | A[2*i+1]) {
            X |= (1LL<<i);
        }
    }
    //cout << X << endl;
    return X;
}

Compilation message

Anna.cpp: In function 'void Anna(int, long long int, int, int*)':
Anna.cpp:11:9: error: 'Set' was not declared in this scope
         Set(2*i, b);
         ^~~
Anna.cpp:11:9: note: suggested alternative: 'getw'
         Set(2*i, b);
         ^~~
         getw
Anna.cpp:15:9: error: 'Set' was not declared in this scope
         Set(i, 0);
         ^~~
Anna.cpp:15:9: note: suggested alternative: 'getw'
         Set(i, 0);
         ^~~
         getw