Borderou de evaluare (job #2397056)

Utilizator ialexia_ioanaAlexia Ichim ialexia_ioana Data 4 aprilie 2019 09:44:28
Problema Difprim Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:38:21: error: 'MAX' was not declared in this scope if (MAX<y-x) ^~~ main.cpp:45:9: error: 'MAX' was not declared in this scope if (MAX==-1) ^~~ main.cpp:25:30: warning: unused variable 'MIN' [-Wunused-variable] int a, b, x, y, z, t, i, MIN=-1; ^~~ main.cpp:23:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("difprim.in", "r", stdin); ^ main.cpp:24:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("difprim.out", "w", stdout); ^ main.cpp:26:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &a, &b); ^ Non zero exit status: 1

Ceva nu functioneaza?