Cod sursa(job #2775806)

Utilizator razviii237Uzum Razvan razviii237 Data 17 septembrie 2021 12:41:48
Problema A+B Scor 0
Compilator cpp-64 Status done
Runda Arhiva de probleme Marime 0.78 kb
#include <iostream>
#include <fstream>

using namespace std;

ifstream f("secv8.in");
ofstream g("secv8.out");

int n, isr, x, y;
char c;

struct data {
    int access(int k) {

    }
    void insert(int k, int e) {

    }
    void reverse(int x, int y) {

    }
    void dlt(int x, int y) {

    }
}now;

int main()
{
    f >> n >> isr;
    while(n --) {
        f >> c;
        if(c == 'A') {
            f >> x;
            g << now.access(x);
        }
        else {
            f >> x >> y;
            if(c == 'I')
                now.insert(x, y);
            else if(c == 'R')
                now.reverse(x, y);
            else if(c == 'D')
                now.dlt(x, y);
        }
    }

    f.close();
    g.close();
    return 0;
}