This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#define BOOST_SPIRIT_DEBUG | |
#include <boost/config/warning_disable.hpp> | |
#include <boost/spirit/include/qi.hpp> | |
#include <boost/spirit/include/lex_lexertl.hpp> | |
#include <boost/spirit/include/phoenix_operator.hpp> | |
#include <boost/spirit/include/phoenix_statement.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
#include <iterator> | |
using namespace std; | |
template <typename Iter> | |
inline void safe_advance(Iter &i, const Iter &end, std::size_t steps) | |
{ | |
while (steps-- > 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104857600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <bunsan/filesystem/error.hpp> | |
#include <boost/filesystem/fstream.hpp> | |
#include <boost/scope_exit.hpp> | |
namespace bunsan{namespace filesystem | |
{ | |
namespace detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPILER_FLAGS = -Wall -Wextra -g -O0 -lboost_system -lboost_thread -pthread | |
JAVAC = $(JAVA_HOME)/bin/javac | |
CFLAGS = $(COMPILER_FLAGS) | |
CXXFLAGS = $(COMPILER_FLAGS) | |
GOFLAGS = | |
#GOFLAGS = -compiler gccgo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COMPILER_FLAGS = -Wall -Wextra -g -O2 | |
JAVAC = $(JAVA_HOME)/bin/javac | |
CFLAGS = $(COMPILER_FLAGS) -std=c11 | |
CXXFLAGS = $(COMPILER_FLAGS) -std=c++11 | |
GOFLAGS = | |
#GOFLAGS = -compiler gccgo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
// incorrect solution for x = 100 | |
int main() | |
{ | |
int l = 1, r = 100; | |
char c; | |
do | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Генеральный спонсор команд ИжГТУ - <b><font color=red>НПО "Компьютер" (г. Ижевск)</font></b>.<br> | |
<br> | |
Дата проведения <b>29 мая 2014 г., время - 15-00, продолжительность 4 часа</b>. | |
<br><br> | |
Участникам, соревнующимся он-сайт и показавшим высокие результаты, предоставляются бонусы при сдаче зачетов и экзаменов (по моим предметам [В.Г.Тарасов] на 100%). <br> | |
Также <b>компанией "Баланс-Сервис" - спонсором чемпионата, - предоставлен призовой фонд</b>.<br> | |
Будет предоставлена возможность участвовать он-лайн. <br /> | |
<br /> | |
В соревновании могут принять участие студенты 1, 2, 3 курсов, школьники.<br> | |
<p><b>Правила подведения результатов</b>. <br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
exec 2>&1 | |
archive="${1:?you have to specify archive}" | |
on_exit() | |
{ | |
if [[ $tmp ]] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
file="I/Don't/Exist" | |
cat "$file" | true | |
echo $? | |
set -o pipefail | |
cat "$file" | true |
OlderNewer