What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-03 08:35:02
in instantiation of function template specialization 'std::__1::__gcd<int>' requested here
#include <iostream> #include <vector> #include <numeric> using namespace std; int main() { int n; cin >> n; vector<int> a(n); for(int i = 0; i < n; ++i) cin >> a[i]; int ans = a[0]; for(int i = 1; i < n; +... Add solution -
C# 2021-09-03 07:46:02
fps camera unity
public float turnSpeed = 4.0f; public float moveSpeed = 2.0f; public float minTurnAngle = -90.0f; public float maxTurnAngle = 90.0f; private float rotX; void Update () { MouseAiming(); Keyboard... Add solution -
R 2021-09-03 05:13:03
r create a vector
# Basic syntax: c(11, 23, 42) # Vector of numerics c(TRUE, FALSE, TRUE) # Vector of booleans/logicals c("aa", "bb", "cc") # Vector of strings # Note, in R, list and vectors (aka atomic vectors) are both # one-dimensional ob... Add solution -
-
Other 2021-08-31 21:34:02
R tidyverse substring words
sentences <- c("Jane saw a cat", "Jane sat down") word(sentences, 1)#> [1] "Jane" "Jane"word(sentences, 2)#> [1] "saw" "sat"word(sentences, -1)#> [1] "cat" "down"... Add solution -
C# 2021-08-31 16:50:02
simple enemy spawning Unity
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GameManagerScript : MonoBehaviour { //This variables will be used to make the limits of the spawn area public Vector2 EnemyAreaLimitUpLeft; public Vec... Add solution