Borderou de evaluare (job #3173234)

Utilizator RazvanVelcuMicneaScoica e mic RazvanVelcu Data 22 noiembrie 2023 09:12:41
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int f(int)': main.cpp:14:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 14 | if(fr[v[r]]==1) | ^~ main.cpp:16:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 16 | while(cnt>k) | ^~~~~ main.cpp: At global scope: main.cpp:48:5: error: redefinition of 'int n' 48 | int n,l,u; | ^ main.cpp:4:5: note: 'int n' previously declared here 4 | int n; | ^ main.cpp:49:11: error: redefinition of 'long long int v [1050000]' 49 | long long v[1050000]; | ^ main.cpp:5:11: note: 'long long int v [1050000]' previously declared here 5 | long long v[1050000]; | ^ main.cpp:51:5: error: redefinition of 'int f(int)' 51 | int f(int max) | ^ main.cpp:6:5: note: 'int f(int)' previously defined here 6 | int f(int k) | ^ main.cpp:75:5: error: redefinition of 'int main()' 75 | int main() | ^~~~ main.cpp:27:5: note: 'int main()' previously defined here 27 | int main() | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?