Pagini recente » Borderou de evaluare (job #2480289) | Borderou de evaluare (job #3322278) | Borderou de evaluare (job #1902848) | Borderou de evaluare (job #2328967) | Borderou de evaluare (job #1742068)
Borderou de evaluare (job #1742068)
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 |
| 1 | 0ms | 428kb | OK | 10 |
| 2 | 0ms | 424kb | OK | 10 |
| 3 | 0ms | 436kb | Incorect | 0 |
| 4 | 0ms | 424kb | OK | 10 |
| 5 | 12ms | 424kb | OK | 10 |
| 6 | 8ms | 424kb | OK | 10 |
| 7 | 8ms | 420kb | OK | 10 |
| 8 | 8ms | 428kb | OK | 10 |
| 9 | 8ms | 424kb | OK | 10 |
| 10 | 12ms | 428kb | OK | 10 |
| Punctaj total | 90 |