Borderou de evaluare (job #1742068)

Utilizator TimitocArdelean Andrei Timotei Timitoc Data 15 august 2016 19:11:22
Problema Bool Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int eval(int, int)’: user.cpp:41:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] if (x = check(st, dr, "OR")) ^ user.cpp:41:32: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (x = check(st, dr, "OR")) ^ user.cpp:43:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] else if (x = check(st, dr, "AND")) ^ user.cpp:43:38: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (x = check(st, dr, "AND")) ^ user.cpp:45:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] else if (x = check(st, dr, "NOT")) ^ user.cpp:45:38: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (x = check(st, dr, "NOT")) ^ user.cpp:49:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] else if (x = check(st, dr, "TRUE")) ^ user.cpp:49:39: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (x = check(st, dr, "TRUE")) ^ user.cpp:51:36: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] else if (x = check(st, dr, "FALSE")) ^ user.cpp:51:37: warning: suggest parentheses around assignment used as truth value [-Wparentheses] else if (x = check(st, dr, "FALSE")) ^ user.cpp: In function ‘void citire()’: user.cpp:14:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:15:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:16:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(changes); ^ user.cpp: In function ‘int eval(int, int)’: user.cpp:58:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:62:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bool.in", "r", stdin); ^ user.cpp:63:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms428kbOK10
20ms424kbOK10
30ms436kbIncorect0
40ms424kbOK10
512ms424kbOK10
68ms424kbOK10
78ms420kbOK10
88ms428kbOK10
98ms424kbOK10
1012ms428kbOK10
Punctaj total90

Ceva nu functioneaza?