Borderou de evaluare (job #2382980)

Utilizator wthICMurad Eynizade wthIC Data 18 martie 2019 21:41:52
Problema Vmin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'std::pair<double, double> inter(int, int, int, int)': main.cpp:24:18: error: 'x' was not declared in this scope if (k1 != 0) x = (y - b1) / k1; ^ main.cpp:25:10: error: 'x' was not declared in this scope else x = (y - b2) / k2; ^ main.cpp:26:13: error: 'x' was not declared in this scope return {x , y}; ^ main.cpp:26:18: error: could not convert '{<expression error>, y}' from '<brace-enclosed initializer list>' to 'std::pair<double, double>' return {x , y}; ^ main.cpp: In function 'int main()': main.cpp:55:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("vmin.in","r",stdin); ^ main.cpp:56:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("vmin.out","w",stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?