Borderou de evaluare (job #3268420)

Utilizator AlexandraVarutuValexandra AlexandraVarutu Data 15 ianuarie 2025 08:58:28
Problema Johnie Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void dfs(int)': main.cpp:23:15: error: no match for 'operator[]' (operand types are 'int [50001]' and 'muchie') 23 | if(frN[i]==0){ | ^ main.cpp:24:17: error: cannot convert 'muchie' to 'int' 24 | dfs(i); | ^ | | | muchie main.cpp:14:14: note: initializing argument 1 of 'void dfs(int)' 14 | void dfs(int k){ | ~~~~^ main.cpp: In function 'void euler(int)': main.cpp:36:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] 36 | euler[nod]; | ^ main.cpp:36:22: warning: value computed is not used [-Wunused-value] 36 | euler[nod]; | ~~~~~~~~~^ main.cpp:36:22: warning: statement has no effect [-Wunused-value] main.cpp: In function 'int main()': main.cpp:49:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 49 | for(int i=1;i<=n&&m>0;i++) | ^~~ main.cpp:72:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 72 | fout<<nrdr<<'\n'; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?