text stringlengths 9 948k |
|---|
/*
* Copyright 2008 Advanced Micro Devices, Inc.
* Copyright 2008 Red Hat Inc.
* Copyright 2009 Jerome Glisse.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, in... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 28, 2021 at 9:07:38 PM Mountain Standard Time
* Operating System: Version 14.5 (Build 18L204)
* Image Source: /System/Library/Frameworks/HomeKit.framework... |
// Copyright 2018 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.
#ifndef CHROMEOS_COMPONENTS_TETHER_FAKE_TETHER_SESSION_COMPLETION_LOGGER_H_
#define CHROMEOS_COMPONENTS_TETHER_FAKE_TETHER_SESSION_COMPLETION_LOGGER_H_
#... |
/*
* Z2k.h
*
*/
#ifndef MATH_Z2K_H_
#define MATH_Z2K_H_
#include <mpirxx.h>
#include <string>
using namespace std;
#include "Tools/avx_memcpy.h"
#include "bigint.h"
#include "field_types.h"
#include "mpn_fixed.h"
#include "ValueInterface.h"
template<class T> class IntBase;
template<int L> class fixint;
template... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/allocation_description.proto
#ifndef PROTOBUF_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto__INCLUDED
#define PROTOBUF_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto__INCLUDED
#include... |
// Copyright 2018 Delft University of Technology
//
// 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... |
/**
* RayChat.h
* Simple chat on RTCPHandler.
* Author Kucheruavyu Ilya (kojiba@protonmail.com)
* 9/11/15 Ukraine Kharkiv
* _ _ _ _
* | | (_|_) |
* | | _____ _ _| |__ __ _
* | |/ / _ \| | | '_ \ / _` |
* | < (_) | | | |_) | (_| |
* |_|\_\___/| |_|_.__/ \__,_|
* _/ |
* |_... |
/* chunkset_tpl.h -- inline functions to copy small data chunks.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
#include "zbuild.h"
#include <stdlib.h>
#if CHUNK_SIZE == 32 && defined(X86_SSE41) && defined(X86_SSE2)
extern uint8_t* chunkmemset_sse41(uint8_t *out, unsigned dist, unsigned... |
#include "../../arm/asm/pci.h" |
#pragma once
#ifndef _CAMERA_FOCUS_H_
#define _CAMERA_FOCUS_H_
#include <ros/ros.h>
#include <nodelet/nodelet.h>
#include <image_transport/image_transport.h>
#include <opencv2/highgui/highgui.hpp>
#include <cv_bridge/cv_bridge.h>
//#include <sstream> // for converting the command line parameter to integer
#include <st... |
#ifndef BBSPHFLUIDRENDERER_H
#define BBSPHFLUIDRENDERER_H
#include "Base/BBRenderableObject.h"
class BBSPHParticleSystem;
class BBSPHFluidSystem;
class BBSPHFluidRenderer : public BBRenderableObject
{
public:
BBSPHFluidRenderer(const QVector3D &position = QVector3D(0, 0, 0));
~BBSPHFluidRenderer();
voi... |
//
// OAInAppCell.h
// OsmAnd
//
// Created by Alexey Kulish on 09/03/15.
// Copyright (c) 2015 OsmAnd. All rights reserved.
//
#import <UIKit/UIKit.h>
#define kPriceTextInset 6.0
#define kPriceMinTextWidth 53.0
#define kPriceMinTextHeight 26.0
#define kPriceRectBorder 15.0
@interface OAInAppCell : UITableViewCe... |
/*
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/**
* @author lucb
* @date 2019/12/19
*/
#ifndef __STAR_SDK_MSG_DECODE_DEBUG_H
#define __STAR_SDK_MSG_DECODE_DEBUG_H
#include <star/Debug.h>
#include <star/msg/scd/SCDEchoData.h>
#include <star/msg/scd/SCDSlowData.h>
namespace ss {
namespace msg {
class AngleRangeIntDebug : public Debug {
public:
bool ... |
void update_knn8(hls::stream<ap_uint<32> > & Input_1, hls::stream<ap_uint<32> > & Output_1);
#pragma map_target = riscv page_num = 24 inst_mem_size = 65536
#pragma debug_port = 3 |
// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2010, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and us... |
#pragma once
#include "BaseRenderer.h"
#include "..\Game\OptionsState.h"
#include "..\Common\SoundManager.h"
class OptionsRenderer : public BaseRenderer
{
private:
const OptionsState& state;
const tggd::common::SoundManager& soundManager;
void RenderItem(int, const std::string&, const OptionsState&);
public:
Option... |
// bb10.c
// "construction of efficient generalized lr parsers": i == 10
int main()
{
int a, b;
a = b
+b+b+b+b+b+b+b+b+b+b
+b+b+b+b+b+b+b+b+b+b
+b+b+b+b+b+b+b+b+b+b
+b+b+b+b+b+b+b+b+b+b
+b+b+b+b+b+b+b+b+b+b
;
return a;
} |
#pragma once
#include <string>
#include "MathTypes.h"
namespace formulae {
namespace input {
math::mlist_t trans(const std::string &str);
template<typename ML=math::mlist_t>
math::NoadRef overline(ML &&ml) {
return math::Overline_t::create(std::forward<ML>(ml));
}
template<typename ML=math::mlist_t>
math::Noad... |
/*
This file is part of penguinphone.
penguinphone is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... |
/*
* generated by CSeq [ 0000 / 0000 ]
*
* 2C9F merger-0.0-2015.07.09
* FB59 parser-0.0-2015.06.26
* AB0B module-0.0-2015.07.16 ]
*
* 2015-07-22 17:29:30
*
* params:
* -i svcomp2015_unsafe/pthread-wmm/safe003_pso.oepc_false-unreach-call.c, ... |
#ifndef GRAPHEDGE_H_
#define GRAPHEDGE_H_
#include <vector>
#include <string>
class GraphNode; //Forward declaration
class GraphEdge
{
private:
//Data handles (not owned)
GraphNode *_childNode;
GraphNode *_parentNode;
//Proprietary members
int _id;
std::vector<std::string> _keywords; //List ... |
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_MULTI_LIST_BOX_H_
#define MYGUI_MULTI_LIST_BOX_H_
#include "MyGUI_Prerequest.h"
#include "MyG... |
// 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.
#ifndef SRC_SECURITY_ZXCRYPT_VOLUME_H_
#define SRC_SECURITY_ZXCRYPT_VOLUME_H_
#include <lib/zx/time.h>
#include <stddef.h>
#include <stdint.h>
#include <z... |
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... |
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef __MYGUI_I_FONT_H__
#define __MYGUI_I_FONT_H__
#include "MyGUI_Prerequest.h"
#include "MyGUI_ISerial... |
#include <stdio.h>
int main(){
int n;
while(scanf("%d", &n) != EOF){
int M[n][n];
for(int i = 0; i<n; i++){
for(int j = 0; j<n; j++){
M[i][j] = 0;
if(i == j) M[i][j] = 2;
if(n-i == j+1) M[i][j] = 3;
if(i >= n/3 && i <=... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <objc/NSObject.h>
@class AVMutableAudioMix, AVMutableComposition, AVMutableVideoComposition, TFNNewsCameraVideoCompositorConte... |
#ifndef VK_MODEL_H
#define VK_MODEL_H
#include "web/ip_checker.h"
#include "web/socials/vk_api.h"
#include "model/web/web_model.h"
#include "media/duration.h"
class VkModel : public WebModel {
Q_OBJECT
public:
VkModel(QString uid, QJsonObject * hash = 0, QObject *parent = 0);
~VkModel();
inline WebA... |
/*
LUFA Library
Copyright (C) Dean Camera, 2010.
dean [at] fourwalledcubicle [dot] com
www.fourwalledcubicle.com
*/
/*
Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documen... |
//
// file_server_util.h
// ct_file_server
//
// Created by yunfan on 2-9-28.
// Copyright (c) 2014年 yunfan. All rights reserved.
//
#pragma once
#ifndef __FILE_SERVER_UTIL_H__
#define __FILE_SERVER_TUIL_H__
#include <pthread.h>
#include <uuid/uuid.h>
#include <imconn.h>
typedef struct file_header_t
{
ch... |
/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
/*
* Copyright (c) 2018 Simon Goldschmidt
* 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 co... |
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Ignasi de Pouplana
//
#if !defined(KRATOS_PRISM_... |
/*
* This header is generated by classdump-dyld 1.5
* on Wednesday, April 14, 2021 at 2:31:00 PM Mountain Standard Time
* Operating System: Version 14.4 (Build 18K802)
* Image Source: /System/Library/PrivateFrameworks/HomeKitDae... |
// SPDX-License-Identifier: GPL-2.0
// Copyright (C) 2005-2019 Andes Technology Corporation
#include <linux/uaccess.h>
#include <asm/sfp-machine.h>
#include <math-emu/soft-fp.h>
#include <math-emu/single.h>
void fui2s(void *ft, void *fa)
{
unsigned int a = *(unsigned int *)fa;
FP_DECL_S(R);
FP_DECL_EX;
FP_FROM_... |
// 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.
#ifndef CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_
#define CHROMEOS_DBUS_SHILL_CLIENT_HELPER_H_
#include <memory>
#include <string>
#include <vector>
#inc... |
//
// Copyright 2002 The ANGLE 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.
//
// TextureStorage.h: Defines the abstract rx::TextureStorage class.
#ifndef LIBANGLE_RENDERER_D3D_TEXTURESTORAGE_H_
#define LIBANGLE_RENDERER_... |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2021, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... |
/**********************************************************************
* Copyright (c) 2015 Pieter Wuille *
* Distributed under the MIT software license, see the accompanying *
* file COPYING or http://www.opensource.org/licenses/mit-license.php.*
*******************************... |
#ifndef __BREZENHAM_H
#define __BREZENHAM_H
#include <TooN/TooN.h>
#include <cvd/image_ref.h>
namespace CVD
{
/// Class to implement the Bresenham line-drawing algorithm.
/// This object does not draw directly into an image, it simply outputs the set
/// of image co-ordinates that should be visited to draw a line in... |
/*
* Copyright 2014, 2015 Red Hat.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* on the rights to use, copy, modify, merge, publi... |
#include "config.h"
#ifndef SCALE_H
#define SCALE_H
// SCALE codec
// - The supported types are enumerated in `ScaleTypes`
// - Each type is encapsulated in a `ScaleElem`
// - The codec does not allocate/deallocate memory by design
#define SCALE_COMPACT_MAX 68
enum ScaleTypes {
type_compact,
type_era,
t... |
/**CFile****************************************************************
FileName [giaCut.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Scalable AIG package.]
Synopsis [Stand-alone cut computation.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date ... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (C) 2003-2005 Brian Harring <ferringb@gmail.com>
#include <cfile.h>
#include <diffball/dcbuffer.h>
unsigned long
default_dcb_src_cfh_read_func(u_dcb_src usrc, unsigned long src_pos,
unsigned char *buf, unsigned long len)
{
if (src_pos != cseek(usrc.cfh, s... |
#ifndef common_H
#define common_H 1
#if !defined(_MSC_VER) && 0
# warning *** This is unstable, untested, development code.
# warning It might not compile. It might not work as expected.
# warning It might be totally insecure.
# warning Do not use this except if you are planning to contribute code.
# warning Use relea... |
// Copyright 2018 the V8 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.
#ifndef V8_OBJECTS_JS_OBJECTS_INL_H_
#define V8_OBJECTS_JS_OBJECTS_INL_H_
#include "src/objects/js-objects.h"
#include "src/feedback-vector.h"
#includ... |
// MABE is a product of The Hintze Lab @ MSU
// for general research information:
// hintzelab.msu.edu
// for MABE documentation:
// github.com/Hintzelab/MABE/wiki
//
// Copyright (c) 2015 Michigan State University. All rights reserved.
// to view the full license, visit:
// github... |
#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
char *user_input;
void error_at(char *loc, char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
int pos = loc - user_input;
fprintf(stderr, "%s\n", user_input);
fprintf(stderr, "%*s", pos, ""); // output pos amou... |
// Copyright 2015, VIXL authors
// 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 conditions ... |
/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
* All Rights Reserved.
*/
#include "xfs.h"
struct xstats xfsstats;
static int counter_val(struct xfsstats __percpu *stats, int idx)
{
int val = 0, cpu;
for_each_possible_cpu(cpu)
val += *(((__u32 *)per_cpu_ptr(stats, ... |
//===- llvm/DerivedTypes.h - Classes for handling data types ----*- 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
//
//===---------------------------... |
/*
* Building OpenSSL for the different architectures of all iOS and tvOS devices requires different settings.
* In order to be able to use assembly code on all devices, the choice was made to keep optimal settings for all
* devices and use this intermediate header file to use the proper opensslconf.h file for each ... |
//------------------------------------------------------------------------------
/*
This file is part of divvyd: https://github.com/xdv/divvyd
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby grant... |
/*
* FreeRTOS V202011.00
* Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including ... |
#pragma once
struct Options {
explicit Options(v8::Local<v8::Object>);
std::string method, body;
std::map<std::string, std::string> headers;
}; |
#include<stdio.h>
#include<string.h>
#define Max 101
//struct defining the map
typedef struct Map{
long long int tel;
char name[7];
}Map;
//hash table
unsigned hashtable[Max];
//hash function
unsigned hash(long long k)
{
int result;
result = (k%Max)+1;
return result;
}
//inserts values into th... |
//
// DFFindGonglueViewController.h
// rongwei
//
// Created by zhangfuyu on 2019/9/19.
// Copyright © 2019 zhangfuyu. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface DFFindGonglueViewController : DFBaseViewController
@end
NS_ASSUME_NONNULL_END |
/******************************************************************************
*
* Name: actbl.h - Basic ACPI Table Definitions
*
*****************************************************************************/
/******************************************************************************
*
* 1. Copyright Notice... |
//------------------------------------------------------------------------------
// GB_AxB: hard-coded functions for semiring: C<M>=A*B or A'*B
//------------------------------------------------------------------------------
// SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2020, All Rights Reserved.
// http://sui... |
/*
* This software is copyrighted as noted below. It may be freely copied,
* modified, and redistributed, provided that the copyright notice is
* preserved on all copies.
*
* There is no warranty or other guarantee of fitness for this software,
* it is provided solely "as is". Bug reports or fixes may be sent... |
/**
* \file
*
* \brief SAM C21 Xplained Pro test configuration.
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ... |
// Copyright (c) 2016 The WebM 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 contributing projec... |
/* Authors:
G. Jungman
J. Scott (james.scott@lexifi.com)
*/
/* Implementation for Sobol generator.
* See
* [Bratley+Fox, TOMS 14, 88 (1988)]
* [Antonov+Saleev, USSR Comput. Maths. Math. Phys. 19, 252 (1980)]
*/
#include <config.h>
#include <gsl/gsl_qrng.h>
#include <gsl/gsl_rng.h>
#define SOBOL_BIT_COU... |
/*
* -- High Performance Computing Linpack Benchmark (HPL)
* HPL - 2.2 - February 24, 2016
* Antoine P. Petitet
* University of Tennessee, Knoxville
* Innovative Computing Laborato... |
#include <thread>
extern pthread_mutex_t am_mutex;
/* Copyright 2019 Stanford University, NVIDIA Corporation
*
* 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.o... |
/*
* This file is part of the OpenMV project.
*
* Copyright (c) 2013-2019 Ibrahim Abdelkader <iabdalkader@openmv.io>
* Copyright (c) 2013-2019 Kwabena W. Agyeman <kwagyeman@openmv.io>
*
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* main function.
*/
#include <stdio.h>
#in... |
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double QXJSONVersionNumber;
FOUNDATION_EXPORT const unsigned char QXJSONVersionString[]; |
//
// AlterTool.h
// XinMaLiu
//
// Created by admin on 2018/5/18.
// Copyright © 2018年 MG. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef void (^AlterBlock)(void);
@interface AlterTool : NSObject
+ (void) showAlert:(NSString *)content actionTitle:(NSString *)actionTitle;
+(void)showAlt... |
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_LINUX_IOPRIO_H
#define _UAPI_LINUX_IOPRIO_H
/*
* Gives us 8 prio classes with 13-bits of data for each class
*/
#define IOPRIO_CLASS_SHIFT 13
#define IOPRIO_CLASS_MASK 0x07
#define IOPRIO_PRIO_MASK ((1UL << IOPRIO_CLASS_SHIFT) - 1)
#define... |
///////////////////////////////////////////////////////////////////////
// File: language_model.h
// Description: Functions that utilize the knowledge about the properties,
// structure and statistics of the language to help segmentation
// search.
// Author: Daria Antonova
// Crea... |
/*******************************************************************************************
Author: Lucas Pacheco.
Description: Test exercise from "The Audio Programming Book", Exercise2.3.5 .
Date: 16/11/2021
*************************************************************************************... |
/*
* RBDL - Rigid Body Dynamics Library
* Copyright (c) 2011-2018 Martin Felis <martin@fysx.org>
*
* Licensed under the zlib license. See LICENSE for more details.
*/
#ifndef RBDL_EIGENMATH_H
#define RBDL_EIGENMATH_H
/* Exporting templated symbols is tricky when using MSVC. The following lines
* causes the clas... |
/*
* Copyright (C) 2010 Apple 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 above copyright
* notice, this list of conditions a... |
/* crypto/asn1/a_int.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-c... |
/***********************************************************************************
* Copyright 2021 Marcos Sánchez Torrent. *
* All Rights Reserved. *
*****************************************************************... |
#include <stdio.h>
int main() {
int v1[3], v2[3];
for (int i = 0; i < 3; i++) {
scanf("%d", &v1[i]);
}
for (int i = 0; i < 3; i++) {
scanf("%d", &v2[i]);
}
int p = 0;
for (int i = 0; i < 3; i++) {
p += v1[i]*v2[i];
}
printf("proizvod: %d\n", p);
return 0;
} |
#ifndef MTDALIGNMENTRCD_H
#define MTDALIGNMENTRCD_H
#include "FWCore/Framework/interface/EventSetupRecordImplementation.h"
class MTDAlignmentRcd : public edm::eventsetup::EventSetupRecordImplementation<MTDAlignmentRcd> {};
#endif |
#include <stdio.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <inttypes.h>
#include <unistd.h>
#include <errno.h>
#include <stdbool.h>
/* for daos */
#include "mfu_daos.h"
#include "mpi.h"
#include "mfu.h"
#include "mfu_errors.h"
/** Print a usage message. */
void print_u... |
// 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.
#ifndef CRYPTO_OPENPGP_SYMMETRIC_ENCRYPTION_H_
#define CRYPTO_OPENPGP_SYMMETRIC_ENCRYPTION_H_
#include <string>
#include "base/string_piece.h"
#incl... |
//
// GameConfig.h
// BallZOut
//
// Created by alex on 10-09-24.
// Copyright Trollwerks Inc. 2010. All rights reserved.
//
#ifndef __GAME_CONFIG_H
#define __GAME_CONFIG_H
//
// Supported Autorotations:
// None,
// UIViewController,
// CCDirector
//
#define kGameAutorotationNone 0
#define kGameAutorotationCCD... |
/*
* Definitions for the 'struct sk_buff' memory handlers.
*
* Authors:
* Alan Cox, <gw4pts@gw4pts.ampr.org>
* Florian La Roche, <rzsfl@rz.uni-sb.de>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Soft... |
/*
* cam_INovaPLC.h
* PHD Guiding
*
* Created by Craig Stark.
* Copyright (c) 2012 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
/********************************************************************
* AUTHORS: Vijay Ganesh, Trevor Hansen
*
* BEGIN DATE: November, 2005
*
* LICENSE: Please view LICENSE file in the home dir of this Program
********************************************************************/
// -*- c++ -*-
#ifndef PRINTERS_H... |
#pragma once
// If you want to use a set of functions to handle SD/SPIFFS/HTTP,
// please include <SD.h>,<SPIFFS.h>,<HTTPClient.h> before <M5GFX.h>
// #include <SD.h>
// #include <SPIFFS.h>
// #include <HTTPClient.h>
#include "M5GFX.h"
#include "lgfx/v1/panel/Panel_SSD1306.hpp"
#if defined ( ARDUINO )
#include <Ard... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
/usr/local/lib/python2.7/dist-packages/nuitka/build/static_src/CompiledCellType.c |
#ifndef __MISSING_RANGES_H
#define __MISSING_RANGES_H
#include <iostream>
#include <vector>
#include <map>
#include <queue>
#include <math.h>
#include <stack>
#include <set>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
using namespace std;
class Solution {
public:
vector<string> findMi... |
#include<Eigen/StdVector>
#include <sensor_msgs/LaserScan.h>
namespace francor {
namespace perception {
using PointVector = std::vector<Eigen::Vector2d,Eigen::aligned_allocator<Eigen::Vector2d>>;
class LaserScan
{
public:
LaserScan(void) = default;
LaserScan(const sensor_msgs::LaserScan& msg);
LaserScan(cons... |
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent
// https://w3c.github.io/uievents/#interface-keyboardevent
#pragma once
#ifndef DKDomKeyboardEvent_H
#define DKDomKeyboardEvent_H
#include "DKDuktape/DKDuktape.h"
#include "DKDuktape/DKKeyCodes.h"
class DKDomKeyboardEvent : public DKObjectT<DKDomKeyb... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2021, The Qwertycoin Group.
//
// This file is part of Qwertycoin.
//
// Qwertycoin is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
... |
/*
Copyright (c) 2009 Robert G. Jakabosky
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publ... |
//
// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).
//
// Copyright (C) 1997-2019 Steve Nygard.
//
#import <objc/NSObject.h>
#import "NSXPCListenerDelegate-Protocol.h"
@class NSString;
@protocol OS_dispatch_queue;
@interface CKDiscretionaryDae... |
/*
* (C) Copyright 1996-2012 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an in... |
// net/bilstm-layer.h
// Copyright 2015 Yajie Miao, Hang Su
// 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
//
// THIS CODE IS PROVIDED ... |
#include "stdafx.h"
#include "d3dscene.h"
// global declarations
IDirect3D9* d3d; // the pointer to our Direct3D interface
IDirect3DDevice9* d3ddev; // the pointer to the device class
LPDIRECT3DVERTEXBUFFER9 v_buffer; // vertex buffer
CUSTOMVERTEX tri[] =
{
{ 2.5f, -3.0f, 0.0f, D3DCOLOR_XRGB(0, 0, 255), },
{... |
// Copyright 2015 Google Inc. 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 applicable... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2019, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
w... |
/*
* Author: Moklyak Alexandr
*/
#include <avr/io.h>
#define ONEWIRE_DDR DDRD
#define ONEWIRE_PORT PORTD
#define ONEWIRE_PIN PIND
#define ONEWIRE_BIT 7
#define ONEWIRE_SEARCH_FIRST 0xFF
#define ONEWIRE_PRESENCE_ERR 0xFF
#define ONEWIRE_DATA_ERR 0xFE
#define ONEWIRE_LAST_DEVICE 0x00
#define ONEWIRE_SEARCH_ROM 0x... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.