Borderou de evaluare (job #1801916)

Utilizator vlad.ulmeanu30Ulmeanu Vlad vlad.ulmeanu30 Data 9 noiembrie 2016 18:22:16
Problema Elementul majoritar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:17:10: error: invalid operands of types ‘FILE* {aka _IO_FILE*}’ and ‘int’ to binary ‘operator>>’ fin>>x; ^ user.cpp:34:10: error: invalid operands of types ‘FILE* {aka _IO_FILE*}’ and ‘int’ to binary ‘operator>>’ fin>>x; ^ user.cpp:11:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fin, "%d", &n ); ^ user.cpp:39:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( fin, "%d", &x ); ^

Ceva nu functioneaza?