Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#include
class User { std::string login_, password_; public: User(const std::string& login, const std::string &password) : login_(login), password_(password) { } std::string GetLogin() { return login_; } void SetLogin(const std::string new_login) { login_ = new_login; } std::string GetPassword() { return password_; } }; void HackPassword(User&, const std::string&) {} int main() { std::string log, pwd; std::cin >> log >> pwd; User user(log, pwd); if (pwd != user.GetPassword()) { return 1; } std::cin >> pwd; HackPassword(user, pwd); std::cout << user.GetPassword() << '\n'; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)