Pagini recente » Borderou de evaluare (job #2578190) | Borderou de evaluare (job #601985) | Borderou de evaluare (job #959344) | Borderou de evaluare (job #1439966) | Borderou de evaluare (job #2224407)
Borderou de evaluare (job #2224407)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:9: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(nr);
^~~~
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:35:16: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
gets(nr);
^
In file included from /usr/include/c++/6/cstdio:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:46,
from user.cpp:1:
/usr/include/stdio.h:638:14: note: declared here
extern char *gets (char *__s) __wur __attribute_deprecated__;
^~~~
user.cpp:47:39: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘lint {aka long long int}’ [-Wformat=]
fprintf(out, "%d\n", ans % MOD);
^
user.cpp:29:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &T);
^
user.cpp:34:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d ", &K);
^
user.cpp:35:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(nr);
^
/tmp/ccJQuDsB.o: In function `main':
user.cpp:(.text.startup+0x1e7): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 608ms | 15164kb | Incorect | 0 |
Punctaj total | 0 |