Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream f("bac.txt");
int a, previous = -1, maxim = -1;
#include <iostream>
using namespace std;
int main() {
int n, m, i, j, a[21][21];
cin >> m >> n;
for (i = 0; i < m; i++)
#include <iostream>
using namespace std;
void Impare(int &n) {
int new_n, p = 1;
while (n > 0) {
#include <iostream>
using namespace std;
struct punct {
float x, y;
};
struct cerc {
struct punct centru;
#include <iostream>
#include <fstream>
using namespace std;
#define MAX 10000001
/**
* Programul face maximul dintre numerele pare
* din prima jumatate si maximul dintre numerele
#include <iostream>
#include <string.h>
using namespace std;
#define NUMAR_CUVINTE 4
/**
* Functie ce verifica daca un cuvant
* p este prescurtat - pe ultima pozitie
* este '.'. Intoarce 1 daca este prescurtat
#include <iostream>
using namespace std;
void inserare(int& n)
{
int new_n = 0, last_digit, p = 1;
while (n >= 10) {
#include <iostream>
using namespace std;
int main() {
int a[5][5];
int i, j;
for (i = 0; i < 5; i++) {
#include <iostream>
#include <fstream>
using namespace std;
int frecventa[101];
int main() {
ifstream f("bac.txt");
int a;
#include <iostream>
using namespace std;
int main() {
int n, tablou[100], i;
cin >> n;
for (i = 0; i < n; i++)
cin >> tablou[i];