Borderou de evaluare (job #2040557)

Utilizator andreisontea01Andrei Sontea andreisontea01 Data 15 octombrie 2017 23:33:18
Problema Numar4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void reduce()’: user.cpp:39:30: error: ‘max’ was not declared in this scope int divm = cmmdc(max(a, b), min(a, b)); ^ user.cpp:39:41: error: ‘min’ was not declared in this scope int divm = cmmdc(max(a, b), min(a, b)); ^ user.cpp: In function ‘void init()’: user.cpp:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cif); ^ user.cpp:16:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cif); ^ user.cpp: In function ‘int cmmdc(int, int)’: user.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:61:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("numar4.in", "r", stdin); ^ user.cpp:62:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("numar4.out", "w", stdout); ^ user.cpp:63:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &ni, &nz); ^ user.cpp:69:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cif); ^ user.cpp:74:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &cif); ^

Ceva nu functioneaza?