What do you want to save?
Add Code snippet
New code examples
-
C++ 2021-11-01 22:35:12
range based for loop c++ with reference
1 #include <iostream> 2 #include <array> 3 #include <cstdlib> 4 5 using namespace std; 6 7 int main(){ 8 array<int, 5> d = {1, 2, -1, 3, 5}; 9 cout << "Items before modification: " << endl; 10 for (int item : ... Add solution -
PHP 2021-11-01 11:53:06
symfony user online
<?php namespace App\EventSubscriber; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\KernelEvents; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Security\Core\Security; class Activity... Add solution -
TypeScript 2021-10-29 21:43:07
Koa the Koala and her best friend want to play a game. The game starts with an array a of length n consisting of non-negative integers. Koa and her best friend move in turns and each have initially a score equal to 0 . Koa starts.
#include <cstdio> #include <cstring> #include <algorithm> #include <vector> #include <cmath> using namespace std; typedef long long ll; const int maxn = 3e5 + 7; const int INF = 2e9; int a[maxn]; int main() { int T;sc... Add solution -
Other 2021-10-24 12:15:07
friend function
#include<iostream> using namespace std; class B; //forward declaration. class A { int x; public: void setdata (int i)  ... Add solution
Best helpers
Mushi.f
+5
Ivan T.
+5
Bianco
+5
Nikola
+5
Graffito
+5
Mari Yoongi
+5
Tyr
+5
Christophrrb
+5
Vary
+5
Del Findley
+5
Nick Vaccaro
+5
Ryan Friend
+5
Millemila
+5
Soumee
+5
Gftern
+5
Davesmiths
+5
Vocaro
+5
Vbence
+5