Borderou de evaluare (job #1266676)

Utilizator TheBos5Alexandru Iercosan TheBos5 Data 18 noiembrie 2014 23:32:28
Problema CMMDC Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:36:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(InAB, "%ld\n%ld", &a, &b); ^ user.cpp:36:33: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘int*’ [-Wformat=] user.cpp:38:2: error: expected ‘;’ before ‘if’ if (cmmdc == 1) { ^ user.cpp:41:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] fprintf(OutAB, "%ld", cmmdc); ^ user.cpp:36:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(InAB, "%ld\n%ld", &a, &b); ^

Ceva nu functioneaza?