Submisie


Utilizator
Problema
Data
Compilator
Scor
10 Iulie 2025, 09:51
c++20
E.C.

fail

Mesaj compilare

        main.cpp:67:5: error: redefinition of ‘int sumc(int)’
   67 | int sumc(int x)
      |     ^~~~
main.cpp:5:5: note: ‘int sumc(int)’ previously defined here
    5 | int sumc(int x)
      |     ^~~~
main.cpp:78:11: error: redefinition of ‘const int NMAX’
   78 | const int NMAX = 1e5;
      |           ^~~~
main.cpp:16:11: note: ‘const int NMAX’ previously defined here
   16 | const int NMAX = 1e5;
      |           ^~~~
main.cpp:79:11: error: redefinition of ‘const int INF’
   79 | const int INF = 1e9;
      |           ^~~
main.cpp:17:11: note: ‘const int INF’ previously defined here
   17 | const int INF = 1e9;
      |           ^~~
main.cpp:81:5: error: redefinition of ‘int v [100005]’
   81 | int v[NMAX + 5];
      |     ^
main.cpp:19:5: note: ‘int v [100005]’ previously declared here
   19 | int v[NMAX + 5];
      |     ^
main.cpp:82:5: error: redefinition of ‘int dp [100005]’
   82 | int dp[NMAX + 5];
      |     ^~
main.cpp:20:5: note: ‘int dp [100005]’ previously declared here
   20 | int dp[NMAX + 5];
      |     ^~
main.cpp:84:5: error: redefinition of ‘int main()’
   84 | int main()
      |     ^~~~
main.cpp:22:5: note: ‘int main()’ previously defined here
   22 | int main()
      |     ^~~~