text stringlengths 7 961k |
|---|
#include<iostream>
using namespace std;
int main()
{
int age;
cout<<"Enter Age of a user:";
cin>>age;
if(age>=18)
{
cout<<"\n you are eligible for voting";
}
else
{
cout<<"\n you are not eligible for voting";
return 0;
}
} |
/******************************************************************************
- domain: Codeforces
- contest: 1144
- problem: A
- title: Diverse Strings
- link: https://codeforces.com/contest/1144/problem/A
- hash: CF_1144_A
- author: Vitor SRG
- version: 1.0 23/03/2... |
static int __=[](){std::ios::sync_with_stdio(false);return 1000;}();
class Solution {
public:
bool uniqueOccurrences(vector<int>& arr) {
map<int , int > m ;
set<int> o , s ;
for(int i = 0; i< arr.size() ; i++){
m[arr[i]]++;
s.insert(arr[i]);
}
... |
/**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... |
/**
Copyright (c) 2014-2015, Sandia Corporation
All rights reserved.
This file is part of fast-matmul and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause.
*/
#include <chrono>
#include <iostream>
#inclu... |
// Copyright (c) 2013-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
#include "ZTimer.h"
#include "CodalCompat.h"
#include "CodalConfig.h"
#include "codal_target_hal.h"
#include "CodalDmesg.h"
// TODO get rid of division on SAMD21 - it's slow
namespace codal
{
// Global millisecond tick count
static volatile uint64_t ticks_ms = 0;
static volatile uint64_t nextTrigger = 0;
ZTimer *... |
// This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "scene_manager.h"
#include "scene_events.h"
#include <cppconn/connection.h>
#include <cppconn/exception.h>
#include <cppconn/resultset.h>
#include <cppconn/statement.h>
#include <cpp... |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... |
/*
* Unicode Bidi-Language Implementation
* Nana C++ Library(http://www.nanapro.org)
* Copyright(C) 2003-2019 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file: nana/u... |
// license:BSD-3-Clause
// copyright-holders:Frank Palazzolo
/*******************************************************************************
Mouser - Video Hardware:
Character map with scrollable rows, 1024 possible characters.
- index = byte from videoram + 2 bits from colorram)
- (if row ... |
#ifndef BOOST_MPL_LIST_AUX_EMPTY_HPP_INCLUDED
#define BOOST_MPL_LIST_AUX_EMPTY_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost... |
#include "caffe2/perfkernels/embedding_lookup.h"
#include "caffe2/core/types.h"
#include "caffe2/perfkernels/common.h"
#include <c10/util/irange.h>
namespace caffe2 {
/**
* Base implementation does runtime dispatch for each segment of reduction
* @return false if there is an out-of-bound error
*/
template <
... |
/**********************************************************************
* File: fpchop.cpp (Formerly fp_chop.c)
* Description: Code to chop fixed pitch text into character cells.
* Author: Ray Smith
* Created: Thu Sep 16 11:14:15 BST 1993
*
* (C) Copyright 1993, Hewlett-Packard Ltd.
** Licensed under t... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
#include "base/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include... |
#include <thread>
#include <plog/Log.h>
#include <plog/Appenders/ColorConsoleAppender.h>
#include "types_flatrpc.hpp"
using namespace std;
using namespace examples::simple;
zmqpp::context ctx;
TypesClient client(ctx);
int main(int argc, char *argv[]) {
static plog::ColorConsoleAppender<plog::TxtFormatter> consol... |
//============================================================================
// Problem : 1078A - Barcelonian Distance
// Category : Geometry
//============================================================================
#include <bits/stdc++.h>
using namespace std;
struct point { double x,y; };
bool operator < (co... |
//===-- ThreadPlanStepOut.cpp -----------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright (c) 2018 Jyocoin Project, Derived from 2014-2018, The Monero Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the ... |
#include "extensions/filters/http/lua/wrappers.h"
#include "common/http/utility.h"
#include "extensions/filters/common/lua/wrappers.h"
namespace Envoy {
namespace Extensions {
namespace HttpFilters {
namespace Lua {
HeaderMapIterator::HeaderMapIterator(HeaderMapWrapper& parent) : parent_(parent) {
entries_.reserv... |
#include <Eigen/Core>
#include <iostream>
#include <LBFGSB.h>
using namespace LBFGSpp;
typedef double Scalar;
typedef Eigen::Matrix<Scalar, Eigen::Dynamic, 1> Vector;
// Example from the roptim R package
// f(x) = (x[0] - 1)^2 + 4 * (x[1] - x[0]^2)^2 + ... + 4 * (x[end] - x[end - 1]^2)^2
class Rosenbrock
{
private:
... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitt... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "driver_host.h"
#include <dlfcn.h>
#include <fuchsia/device/manager/c/fidl.h>
#include <fuchsia/device/manager/llcpp/fidl.h>
#include <inttypes.h... |
/*
Copyright (c) 2018-2021, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/*************************************************************************/
/* mobile_vr_interface.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*ckwg +29
* Copyright 2014 by Kitware, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of... |
#include "../../../inc/synchronizer/messages/release_signal.h"
release_signal::release_signal() {}
release_signal::release_signal(uint8_t* buf) {
deserialize(buf);
}
release_signal::release_signal(uint16_t tag, uint32_t time, const lock_request* released_request): synchronization_message(tag, time) {
this->release... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatsub/LCaDDa.cpp
// \brief Source file for the LCaDDa sparse matrix/dense matrix subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This fi... |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2021 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2019 The Zaarde Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-li... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//
// Copyright (c) 2020, 219 Design, LLC
// See LICENSE.txt
//
// https://www.219design.com
// Software | Electrical | Mechanical | Product Design
//
#include "resource_helper.h"
#include <QtQml/QQmlContext>
namespace project
{
namespace
{
ResourceHelper helper;
} // namespace
/*static*/ void ResourceHelper::Export... |
#ifndef POSIX_TIME_DURATION_HPP___
#define POSIX_TIME_DURATION_HPP___
/* Copyright (c) 2002,2003 CrystalClear Software, Inc.
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
* Author: Jef... |
/*=========================================================================
Program: ParaView
Module: vtkPVHistogramChartRepresentation.cxx
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed W... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/tools/test_shell/test_shell_webkit_init.h"
#include "base/metrics/stats_counters.h"
#include "base/path_service.h"
#include "media/b... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Crowncoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpcclient.h"
#include "init.h"
#include <boost/... |
#include <memory>
#include <cstring>
#include "trop.h"
//=======================================================================
class HalfCord
{
std::unique_ptr<int[]> m_array;
int m_radius;
public:
HalfCord(int radius)
: m_radius(radius)
, m_array(new int[radius + 1])
{
assert(radius >= 0);
memset(m_a... |
// (C) Copyright John Maddock 2005.
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
//
// See http://www.boost.org/libs/type_traits for most recent version including docume... |
/*
* File: Codechef - Golu and Sweetness
* Algorithm: Euler's totient function
* Created Date: Saturday August 1st 2020
* Author: preetam rane
*/
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,q;
cin>>n>>q;
long long a[n];
for(int i=0;i<n;i++)
cin>>a[i];
for(i... |
/**
* Copyright (C) 2020 Elisha Riedlinger
*
* This software is provided 'as-is', without any express or implied warranty. In no event will the
* authors be held liable for any damages arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose, including co... |
#ifndef CLOVER_GUI_CALLBACK_HPP
#define CLOVER_GUI_CALLBACK_HPP
#include "build.hpp"
// .tpp
#include "global/event.hpp"
#include <functional>
namespace clover {
namespace gui {
template <typename ElementType>
using CallbackFunction = std::function<void (ElementType&)>;
class GuiMgr;
class BaseCallback {
public:
... |
/*
* Copyright (C) 2009 Apple Inc. All Rights Reserved.
* Copyright (C) 2009 Google Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the ... |
/*
main.cpp
Copyright (c) 2019, Martin Knoblauch Revuelta
See accompanying LICENSE
https://github.com/mkrevuelta/CppMoveBase64
*/
#include <iostream>
#include <string>
#include <exception>
#include <CppMoveBase64.h>
void testEncodeHello ();
void testEncodeVectorInt ();
void testEncodeStreamed ();
v... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Raven Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "transactiondesc.h"
#include "bitcoinunits.h"
#include "guiutil.h"
... |
/////////////////////////////////////////////////////////////////////////////////
//
// Thor C++ Library
// Copyright (c) 2011-2019 Jan Haller
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this ... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <vector>
#include <algorithm>
#include <utility>
#include <limits>
#include <string>
#include <map>
#include <legacy/ie_layers.h>
#include "gna_upstream_iterator.hpp"
#include "layers/gna_layer_info.hpp"
#inc... |
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: Kevin Hughes, Heiko Strathmann, Bjoern Esser
*/
#include <shogun/converter/ica/UWedgeSep.h>
#include <shogun/features/DenseFeatures.h>
#include <shogun/mathematics/Math.h>
#include <shogun/mathematics/eigen3.h>
#includ... |
/*
https://practice.geeksforgeeks.org/problems/delete-nodes-having-greater-value-on-right/1
Delete nodes having greater value on right
Medium Accuracy: 37.92% Submissions: 50140 Points: 4
Given a singly linked list, remove all the nodes which have a greater value on its following nodes.
Example 1:
Input:
LinkedList ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "validationinterface.h"
#include "util.h"
static CMainSignals g_signals... |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018-2019 The esbcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2016-2019 The ROCKETFUNDCOIN developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txmempool.h"
#incl... |
// Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/paymentserver.h>
#include <qt/bitcoinunit... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 Strawberry-Pr0jcts <http://www.strawberry-pr0jcts.com/>
*
* Copyright (C) 2010 - 2013 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright... |
// Copyright (c) 2019 The PIVX developers
// Copyright (c) 2020 The Klimatas developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/kts/navmenuwidget.h"
#include "qt/kts/forms/ui_navmenuwidget.h"
#include "qt/kt... |
//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2010/05/14
// Author: Mike Ovsiannikov
//
// Copyright 2010-2012,2016 Quantcast Corporation. All rights reserved.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
int i,j,k,n,t,s;
scanf("%d",&s);
printf("\n");
while(s>0){
scanf("%d%d",&n,&t);
printf("\n");
for(k=0;k<t;k++){
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
p... |
#include <Core/Block.h>
#include <Parsers/ASTExpressionList.h>
#include <Parsers/ASTFunction.h>
#include <Parsers/ASTIdentifier.h>
#include <Parsers/ASTLiteral.h>
#include <Parsers/ASTOrderByElement.h>
#include <Parsers/ASTSelectQuery.h>
#include <Parsers/ASTSubquery.h>
#include <Parsers/ASTWindowDefinition.h>
#includ... |
#ifndef __ANG_FOUNDATIONS_H__
#error ...
#elif !defined __ANG_FOUNDATIONS_INL__
#define __ANG_FOUNDATIONS_INL__
template<typename T>
inline ang::graphics::point<T> ang::graphics::point<T>::parse(ang::cstr_t cstr)
{
if (cstr.ptr() == null)
return{ 0,0 };
//text::iparser_t parser = text::iparser::get_parser(cstr.enc... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2017 The BitenX Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "validation.h"
#include "messagesigner.h... |
#include "GamePCH.h"
#include "GameObjects/GameObject.h"
#include "UIObject.h"
#include "GameObjects/UI/ScoreNumber.h"
#include "GameObjects/UI/PokeBall.h"
#include "GameplayHelpers/TileMap.h"
#include "GameplayHelpers/TileMapExtras.h"
#include "Mesh/Mesh.h"
#include "Game/Game.h"
#include "GameObjects/Trainer.h"
U... |
#include "EventFilter/L1TRawToDigi/interface/OmtfRpcPacker.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/ESTransientHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "CondFormats/RPCObjects/interface/RPCReadOutMapping.h"
#include "EventFilter/RPC... |
/*
* ======================================================================
* Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
* Licensed under the MIT License.
* See LICENSE.md in the project root for license information.
* =====================================================================... |
#include "tradingdialog.h"
#include "ui_tradingdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include <qmessagebox.h>
#include <qtimer.h>
#include <rpcserver.h>
#include <QClipboard>
#include <QDebug>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#i... |
#include "listado_vertical.h" |
// Copyright (c) 2018-2020 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(PHYLANX_IR_NODE_SLICE_NODE_DATA_3d_SEP_18_2018_0125PM)
#define PHYLANX_IR_NODE_SLICE_NODE_DATA_3d_SEP_18_201... |
#include <iostream>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
int x1 = a + b, x2 = a * b, y1 = b + c, y2 = b * c;
int r = 0, s = 0;
s = x1 + c;
if (s > r) r = s;
s = x1 * c;
if (s > r) r = s;
s = x2 + c;
if (s > r) r = s;
s = x2 * c;
if (s > r) r = s;
s = a + y1... |
#include <front/ForwardRenderingPath.h>
#include <core/BasicRenderPass.h>
#include <core/Renderer.h>
#include <core/Shader.h>
#include <front/Camera.h>
#include <front/Camera.h>
namespace blitz::front
{
const auto viewPortSizeUniformName = hashString("_bViewPortSize");
const auto viewMatrixUniformName = hashSt... |
/*
*
* Copyright (C) 1994-2010, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmnet
*
* Author: Andrew He... |
//-----------------------------------------------------------------------------------
// Code generated by the Toolify Robotics GmbH extension for the SmartMDSD Toolchain
//
// Toolify Robotics GmbH
// Weinbergweg 216
// 89075 Ulm
//
// Information about the SmartSoft MDSD Toolchain is available at:
// www.servicero... |
/*
* Copyright 2019 Carnegie Technologies
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/activity_log/activity_actions.h"
#include <memory>
#include <string>
#include <utility>
#include "base/format_ma... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
// Copyright 2018 Slightech Co., Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... |
/*
* Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any l... |
//==--- defines_elementary.hpp ---- Preprocessor directives (simplified) ---==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... |
#include "formulationEvent.h"
formulationEvent::formulationEvent()
{
}
void formulationEvent::set_Type(char T)
{
type = T;
}
int formulationEvent::get_Type()
{
return type;
}
void formulationEvent::set_TargetLocation(int TLoc)
{
targetLocation = TLoc;
}
int formulationEvent::get_TargetLocation()
{
return tar... |
#include <ros/ros.h>
#include <autoware_msgs/VehicleCmd.h>
static ros::Subscriber sub;
static ros::Publisher pub;
void ndt_cb(const autoware_msgs::VehicleCmd& msg){
sensor_msgs::Image out;
out = msg;
out.header.stamp = ros::Time::now();
pub.publish(out);
}
int main(int argc, char** argv){
ros::in... |
/*
Part of the Fluid Corpus Manipulation Project (http://www.flucoma.org/)
Copyright 2017-2019 University of Huddersfield.
Licensed under the BSD-3 License.
See license.md file in the project root for full license information.
This project has received funding from the European Research Council (ERC)
under the European... |
// Compress/CopyCoder.cpp
#include "StdAfx.h"
#include "../../../C/Alloc.h"
#include "../Common/StreamUtils.h"
#include "CopyCoder.h"
namespace NCompress {
static const UInt32 kBufferSize = 1 << 17;
CCopyCoder::~CCopyCoder()
{
::MidFree(_buffer);
}
STDMETHODIMP CCopyCoder::Code(ISequentialInStream *inStream,
... |
///////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source
// License. See LICENSE file in top directory for details.
//
// Copyright (c) 2020 QMCPACK developers.
//
// File developed by: Fionn Malone, malone14@llnl.gov,... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
/*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
#include<bits/stdc++.h>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define MC(n,m) memcpy((n),(m),sizeof(n))
#define F first
#define S seco... |
#include <iostream>
using namespace std;
int main()
{
int x = -2, y = 0;
while(x <= 3) {
y = y + 2;
x = x + 1;
//cout << x << " " << y << endl;
}
cout << x << " " << y << endl;
return 0;
} |
/*
LodePNG version 20190210
Copyright (c) 2005-2019 Lode Vandevenne
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... |
/*
* Copyright 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
//
// Created by Keen on 26.01.2021.
//
#ifndef EVENTS_ENTITYMANAGER_HPP
#define EVENTS_ENTITYMANAGER_HPP
class EntityManager {
};
#endif //EVENTS_ENTITYMANAGER_HPP |
#include <array>
#include <pichi/asserts.hpp>
#include <pichi/common.hpp>
#include <pichi/crypto/base64.hpp>
using namespace std;
namespace pichi::crypto {
static auto const OTECTS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"sv;
static char otect2offset(char otect, PichiError e)
{
if (otec... |
//===--------------------------------------------------------------------------------*- C++ -*-===//
// _____ _
// / ____| (_)
// | (___ ___ __ _ _ _ ___ _ __ _
// \___ \ / _ \... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2001-2009 Daniel Nuffer
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http:/... |
/* Copyright © 2019-2020 N. Van Bossuyt. */
/* This code is licensed under the 3-Clause BSD License. */
/* See: LICENSE.md */
#include <libsystem/__plugs__.h>
#include <libsystem/Stdio.h>
#include <libs... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... |
//INPUT HEADERS
#include "translate_from_input.hpp"
#include "input_to_network.hpp"
#include "structure_defs.hpp"
//#include "ADJ/traversal.hpp"
//OUTPUT HEADERS
#include "printout_network.hpp"
#include "printout_others.hpp"
#include "SP_structure.hpp"
#include "readin_data.hpp"
//#include "sparsekey.hpp"
using na... |
/*
* Copyright 2012 Rolando Martins, CRACS & INESC-TEC, DCC/FCUP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.