5272021-11-03 19:59:42TSomaToronyépítés (1,1,3,3)cpp11Forditási hiba
#include <iostream>

int main()
{
    std::cin.sync_with_stdio(false);
    std::cin.tie(nullptr);

    unsigned int N;
    std::cin >> N;

    unsigned long long int a = 2;
    unsigned long long int b = 4;
    unsigned long long int c = 10;

    for (int n = 3; n < N; n += 3)
    {
        a = 2 * (c + a);
        a = a >= 202101080000000000 ? a % 20210108 : a;
        b = 2 * (a + b);
        b = b >= 202101080000000000 ? b % 20210108 : b;
        c = 2 * (b + c);
        c = c >= 202101080000000000 ? c % 20210108 : c;
    }

    switch (N >= 3 ? N % 3 : N)
    {
    case 0:
        std::cout << c % 20210108;
        break;
    case 1:
        std::cout << a % 20210108;
        break;
    case 2:
        std::cout << b % 20210108;
        break;
    }

    if(a>c)

}
Forditási hiba
exit status 1main.cpp: In function ‘int main()’:
main.cpp:40:1: error: expected primary-expression before ‘}’ token
   40 | }
      | ^
Exited with error status 1