#include <algorithm>
#include <iostream>
#include <string>
#include <iterator>
#include <vector>
class Bacteria;
std::vector<int> Putting;
std::vector<Bacteria> BacS;
class Bacteria{
private:
int timeOf;
int Grow;
inline static int counter;
const int id;
public:
Bacteria(int a, int b): timeOf(a), Grow(a + b), id(++counter){
std::cout << id << '\n';
}
static int Print(){
return counter;
}
static void app(){
//Bacteria* a = new Bacteria(1, 1);
Bacteria a = Bacteria(1, 1);
BacS.push_back(a);
}
};
int main(){
int a = 0;
std::cin >> a;
for(int i = 0; i != a; ++i){
Bacteria::app();
}
std::cout << Bacteria::Print << '\n';
for(auto a: BacS){
std::cout << a.Print();
}
}
#include <algorithm>
#include <iostream>
#include <string>
#include <iterator>
#include <vector>
class Bacteria;
std::vector<int> Putting;
std::vector<Bacteria*> BacS;
class Bacteria{
private:
int timeOf;
int Grow;
inline static int counter;
const int id;
public:
Bacteria(int a, int b): timeOf(a), Grow(a + b), id(++counter){
std::cout << id << '\n';
}
static int Print(){
return counter;
}
static void app(){
Bacteria* a = new Bacteria(1, 1);
//Bacteria a = Bacteria(1, 1);
BacS.push_back(a);
}
};
int main(){
int a = 0;
std::cin >> a;
for(int i = 0; i != a; ++i){
Bacteria::app();
}
std::cout << Bacteria::Print << '\n';
for(auto a: BacS){
std::cout << a -> Print();
}
}
#include <algorithm>
#include <iostream>
#include <string>
#include <iterator>
#include <vector>
class Bacteria;
std::vector<int> Putting;
std::vector<Bacteria> BacS;
class Bacteria{
private:
int timeOf;
int Grow;
inline static int counter;
const int id;
public:
Bacteria(int a, int b): timeOf(a), Grow(a + b), id(++counter){
std::cout << id << '\n';
}
static int Print(){
return counter;
}
static void app(){
//Bacteria* a = new Bacteria(1, 1);
Bacteria a = Bacteria(1, 1);
BacS.push_back(a);
}
};
int main(){
int a = 0;
std::cin >> a;
for(int i = 0; i != a; ++i){
Bacteria::app();
}
std::cout << Bacteria::Print << '\n';
for(auto a: BacS){
std::cout << a.Print();
}
}
#include <algorithm>
#include <iostream>
#include <string>
#include <iterator>
#include <vector>
class Bacteria;
std::vector<int> Putting;
std::vector<Bacteria*> BacS;
class Bacteria{
private:
int timeOf;
int Grow;
inline static int counter;
const int id;
public:
Bacteria(int a, int b): timeOf(a), Grow(a + b), id(++counter){
std::cout << id << '\n';
}
static int Print(){
return counter;
}
static void app(){
Bacteria* a = new Bacteria(1, 1);
//Bacteria a = Bacteria(1, 1);
BacS.push_back(a);
}
};
int main(){
int a = 0;
std::cin >> a;
for(int i = 0; i != a; ++i){
Bacteria::app();
}
std::cout << Bacteria::Print << '\n';
for(auto a: BacS){
std::cout << a -> Print();
}
}