Borderou de evaluare (job #1382269)

Utilizator mariusadamMarius Adam mariusadam Data 8 martie 2015 18:56:46
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:1: error: expected initializer before ‘int’ int n; ^ user.cpp: In function ‘bool cont(int)’: user.cpp:15:13: error: ‘x’ was not declared in this scope if (x[i]==x[k]) ^ user.cpp: In function ‘void afis(int)’: user.cpp:24:12: error: ‘x’ was not declared in this scope w<<x[i]<<" "; ^ user.cpp: In function ‘void bkt()’: user.cpp:31:5: error: ‘x’ was not declared in this scope x[k]=0; ^ user.cpp:33:18: error: ‘n’ was not declared in this scope if (x[k]<n) { ^ user.cpp:35:16: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if (cont(k)) ^ user.cpp: In function ‘int main()’: user.cpp:49:8: error: ‘n’ was not declared in this scope r>>n; ^

Ceva nu functioneaza?