Pagini recente » Borderou de evaluare (job #409980) | Borderou de evaluare (job #1568923) | Borderou de evaluare (job #1519962) | Borderou de evaluare (job #1136056) | Borderou de evaluare (job #1742079)
Borderou de evaluare (job #1742079)
Raport evaluator
Compilare:
user.cpp: In function ‘int check(int, int, char*)’:
user.cpp:21:6: warning: unused variable ‘rez’ [-Wunused-variable]
int rez = 0;
^
user.cpp: In function ‘int eval(int, int)’:
user.cpp:42:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
if ((x = check(st, dr, "OR")) != -1)
^
user.cpp:44:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
else if ((x = check(st, dr, "AND")) != -1)
^
user.cpp:46:38: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
else if ((x = check(st, dr, "NOT")) != -1)
^
user.cpp:50:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
else if ((x = check(st, dr, "TRUE")) != -1)
^
user.cpp:52:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
else if ((x = check(st, dr, "FALSE")) != -1)
^
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:59:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:63: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:64:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bool.out", "w", stdout);
^
/tmp/cczDVXCf.o: In function `citire()':
user.cpp:(.text+0x13): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 428kb | OK | 10 |
2 | 0ms | 424kb | OK | 10 |
3 | 0ms | 424kb | OK | 10 |
4 | 0ms | 420kb | OK | 10 |
5 | 12ms | 424kb | OK | 10 |
6 | 8ms | 424kb | OK | 10 |
7 | 8ms | 420kb | OK | 10 |
8 | 8ms | 420kb | OK | 10 |
9 | 8ms | 424kb | OK | 10 |
10 | 8ms | 420kb | OK | 10 |
Punctaj total | 100 |