@vncpetrov/

Placeholders

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.22771240025095385","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RkaW8uaD4KCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICBzdHJpbmcgZmlyc3ROYW1lLCBzZWNvbmROYW1lOwogIGNpbiA+PiBmaXJzdE5hbWUgPj4gc2Vjb25kTmFtZTsKCiAgaW50IGFnZTsKICBjaW4gPj4gYWdlOwoKICBzdHJpbmcgdG93bjsKICBjaW4gPj4gdG93bjsKCiAgcHJpbnRmKCJZb3UgYXJlICVzICVzLCBhICVkLXllYXJzIG9sZCBwZXJzb24gZnJvbSAlcyIsCiAgICBmaXJzdE5hbWUuY19zdHIoKSwgc2Vjb25kTmFtZS5jX3N0cigpLCBhZ2UsIHRvd24uY19zdHIoKSk7Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
  string firstName, secondName;
  cin >> firstName >> secondName;

  int age;
  cin >> age;

  string town;
  cin >> town;

  printf("You are %s %s, a %d-years old person from %s",
    firstName.c_str(), secondName.c_str(), age, town.c_str());
}