Borderou de evaluare (job #3315004)

Utilizator vicctorVictor Popa vicctor Data 11 octombrie 2025 19:31:32
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:5:1: error: expected ',' or ';' before 'ofstream' 5 | ofstream fout ("permutari.out") | ^~~~~~~~ main.cpp: In function 'void afis()': main.cpp:9:21: error: 'n' was not declared in this scope 9 | for(int i=1; i<=n; i++) fout<<v[i]<<" "; | ^ main.cpp:9:29: error: 'fout' was not declared in this scope 9 | for(int i=1; i<=n; i++) fout<<v[i]<<" "; | ^~~~ main.cpp:9:35: error: 'v' was not declared in this scope 9 | for(int i=1; i<=n; i++) fout<<v[i]<<" "; | ^ main.cpp:10:5: error: 'fout' was not declared in this scope 10 | fout<<endl; | ^~~~ main.cpp: In function 'void bkt(int)': main.cpp:13:11: error: 'n' was not declared in this scope 13 | if(k==n+1){ | ^ main.cpp:17:20: error: 'n' was not declared in this scope 17 | for(int i=1;i<=n;i++){ | ^ main.cpp:18:12: error: 'uz' was not declared in this scope 18 | if(uz[i]==0){ | ^~ main.cpp:19:13: error: 'v' was not declared in this scope 19 | v[k]=i; | ^ main.cpp: In function 'int main()': main.cpp:29:10: error: 'n' was not declared in this scope 29 | fin>>n; | ^ Non zero exit status: 1

Ceva nu functioneaza?