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
Cynthia
+5
Eric Thomsen
+5
Eve noonan
+5
Martinako
+5
Numeri
+5
Magd
+5
John Weisz
+5
Rocky DeHart
+5
Tammy Lin
+5
Flyeogh
+5
Jony Agarwal
+5
SunnyHills
+5
Ishan Yadav
+5
Aown Ali
+5
Terry3497
+5
Xkcvk2511
+5
Jean Luis
+5