2kolok_SP

 avatargorazd
Publica year ago42 snippets
2024-12.cpp
2024-11.cpp
2024-10.cpp
2024-9.cpp
2024-8.cpp
2024_7.cpp
2024-6.cpp
2024_5.cpp
2024_4.cpp
2024_3.cpp
2024_2.cpp
2024_1.cpp
5dop.cpp
12dop.cpp
11dop.cpp
10dop.cpp
9dop.cpp
7dop.cpp
6dop.cpp
4dop.cpp
3dop.cpp
2dop.cpp
1dop.cpp
zad19.cpp
zad18.cpp
  • /2

2024-12

a year ago
2024-12.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


char findCapital(char* s, int len)
{
    if(isupper(s[0]))

2024-11

a year ago
2024-11.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024-10

a year ago
2024-10.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool soglaska(char a)
{
    a = tolower(a);
    return(a == 'a' || a == 'e' || a == 'i' || a == 'o' || a == 'u');

2024-9

a year ago
2024-9.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


char findCapital(char* s, int len)
{
    if(ispunct(s[0]))

2024-8

a year ago
2024-8.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_7

a year ago
2024_7.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool soglaska(char a)
{
    a = tolower(a);
    if (!isalpha(a))

2024-6

a year ago
2024-6.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


void sequence(int n, int i, bool descendI)
{
    if(n - 3*i <= 0)

2024_5

a year ago
2024_5.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_4

a year ago
2024_4.cpp
#include <iostream>
#include <cstring>
#include <iomanip>
using namespace std;


int countItUp(char *s, char *str) {
    int len = strlen(str);
    int count = 0;
    char *p = s;

2024_3

a year ago
2024_3.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


void sequence(int n, int i, bool descendI)
{
    if(n - 5*i <= 0)

2024_2

a year ago
2024_2.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;




int main() {

2024_1

a year ago
2024_1.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

int countItUp(char* s, char* s_)
{
    int counter = 0;
    const char *p = strstr(s, s_);

5dop

a year ago
5dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;



bool validIndex(int i, int j, int m, int n)
{

12dop

a year ago
12dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

bool isCool(int a, int i, int j) {
    return (a%2 == (i+j)%2);
}

11dop

a year ago
11dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

void transform(int* arr, int n) {
    int d = *arr;
    if (abs(d)>=n) {

10dop

a year ago
10dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int brojNaCifri(int a);

int spoeni(int i, int j) {

9dop

a year ago
9dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int countSvrz(char* s) {
    char s_copy[100];
    strcpy(s_copy, s);

7dop

a year ago
7dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;

bool positive(int *arr, int len)
{
    for (int i = 0; i < len; i++)
        if (arr[i] < 0)
            return false;

6dop

a year ago
6dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
using namespace std;

void swap(int *a, int *b)
{
    int temp = *a;
    *a = *b;
    *b = temp;

4dop

a year ago
4dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;


int main() {
    int m,n;

3dop

a year ago
3dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

void Function(char *s, int len) {
    int count = 0;
    for (int i = 0; i < len; i++) {

2dop

a year ago
2dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
#include <cmath>
using namespace std;

int main() {
    int n;
    cin >> n;

1dop

a year ago
1dop.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

bool isPalindrome(char* s, int len) {
    int start = 0, end = len - 1;
    while (start < end) {
        if (s[start]!=s[end])

zad19

a year ago
zad19.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;

void transform(char* s,int x, int len) {
    if (len == 0) return;
    if (isalpha(s[0])) {
        if (isupper(s[0])) { //uppercase

zad18

a year ago
zad18.cpp
#include <iostream>
#include <cctype>
#include <cstring>
#include <iomanip>
using namespace std;


int main() {
    int n;
    cin>>n;