Borderou de evaluare (job #2224407)

Utilizator Andrei1998Andrei Constantinescu Andrei1998 Data 23 iulie 2018 22:05:20
Problema Frumusete Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

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
1608ms15164kbIncorect0
Punctaj total0

Ceva nu functioneaza?