Borderou de evaluare (job #1745023)

Utilizator marius.onescuMarius marius.onescu Data 20 august 2016 23:12:21
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int unu(int)’: user.cpp:12:2: error: expected ‘while’ before ‘m’ m = (st + dr)/2; ^ user.cpp:12:2: error: expected ‘(’ before ‘m’ user.cpp:12:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] m = (st + dr)/2; ^ user.cpp:12:17: error: expected ‘)’ before ‘;’ token m = (st + dr)/2; ^ user.cpp: In function ‘int doi(int)’: user.cpp:25:5: error: expected ‘while’ before ‘m’ m = (st + dr)/2; ^ user.cpp:25:5: error: expected ‘(’ before ‘m’ user.cpp:25:19: warning: suggest parentheses around assignment used as truth value [-Wparentheses] m = (st + dr)/2; ^ user.cpp:25:20: error: expected ‘)’ before ‘;’ token m = (st + dr)/2; ^ user.cpp: In function ‘int trei(int)’: user.cpp:36:2: error: expected ‘while’ before ‘m’ m = (st + dr)/2; ^ user.cpp:36:2: error: expected ‘(’ before ‘m’ user.cpp:36:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] m = (st + dr)/2; ^ user.cpp:36:17: error: expected ‘)’ before ‘;’ token m = (st + dr)/2; ^ user.cpp: In function ‘int main()’: user.cpp:41:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.in", "r", stdin); ^ user.cpp:42:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.out", "w", stdout); ^ user.cpp:43:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:44:45: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (i = 1; i <= n; i++) scanf("%d", &a[i]); ^ user.cpp:45:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:48:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?