Borderou de evaluare (job #1653358)

Utilizator FragentisMihai Petru Fragentis Data 15 martie 2016 21:49:09
Problema Generare de permutari Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:29:21: error: expected ‘;’ before ‘fprintf’ fprintf(f, "\n"); ^ user.cpp:24:15: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(!in_stack[x[k]]) ^ user.cpp:42:7: error: request for member ‘close’ in ‘f’, which is of pointer type ‘FILE* {aka _IO_FILE*}’ (maybe you meant to use ‘->’ ?) f.close(); ^ user.cpp:12:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &n); ^

Ceva nu functioneaza?