Borderou de evaluare (job #2337774)

Utilizator Leonard123Mirt Leonard Leonard123 Data 6 februarie 2019 18:27:19
Problema Suma si numarul divizorilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:9:1: error: parse error in template argument list bitset <m> bitsett; ^ main.cpp:9:1: error: declaration does not declare anything [-fpermissive] main.cpp:9:10: error: expected unqualified-id before '>' token bitset <m> bitsett; ^ main.cpp:8:18: error: expected ']' before ';' token #define m 1000005; ^ main.cpp:10:7: note: in expansion of macro 'm' int v[m],k; ^ main.cpp:10:8: error: expected unqualified-id before ']' token int v[m],k; ^ main.cpp: In function 'void ciur()': main.cpp:13:5: error: 'bitsett' was not declared in this scope bitsett[1]=1; ^~~~~~~ main.cpp:14:21: error: expected primary-expression before ';' token for(int i=2; i<m; i++) ^ main.cpp:14:21: error: expected ')' before ';' token main.cpp:14:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int i=2; i<m; i++) ^~~ main.cpp:14:23: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int i=2; i<m; i++) ^ main.cpp:14:23: error: 'i' was not declared in this scope main.cpp: In function 'int main()': main.cpp:42:25: error: 'k' was not declared in this scope for(int i=1; i<=k && 1ll*v[i]*v[i]<=n; i++){ ^ main.cpp:42:34: error: 'v' was not declared in this scope for(int i=1; i<=k && 1ll*v[i]*v[i]<=n; i++){ ^ Non zero exit status: 1

Ceva nu functioneaza?