Pagini recente » Borderou de evaluare (job #260586) | Cod sursa (job #3273023) | Borderou de evaluare (job #1789051) | Borderou de evaluare (job #651582) | Borderou de evaluare (job #1623797)
Borderou de evaluare (job #1623797)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:11:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:92:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("palind.in", "r", stdin);
^
user.cpp:93:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("palind.out", "w", stdout);
^
user.cpp:94:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &t);
^
user.cpp: In function ‘void det_sol()’:
user.cpp:38:49: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if ((d == 0 && !p[x]) || (d == 1 && !p[y]))
^
user.cpp:38:28: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if ((d == 0 && !p[x]) || (d == 1 && !p[y]))
^
/tmp/ccYNX6oH.o: In function `read()':
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 | 452kb | Incorect | 0 |
Punctaj total | 0 |