Borderou de evaluare (job #1440780)

Utilizator GG_FacilUNIBUC GG Facil GG_Facil Data 23 mai 2015 14:10:40
Problema Largest Root Status done
Runda ACM-ICPC Faza Nationala 2015-2016 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void sol()’: user.cpp:88:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (s[i][s[i][0]] == '-') ^ user.cpp:90:25: warning: array subscript has type ‘char’ [-Wchar-subscripts] s[i][s[i][0]] = 0; ^ user.cpp:70:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d\n", &n); ^ user.cpp:76:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s[i] + 1); ^ user.cpp: In function ‘int main()’: user.cpp:116:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("largestroot.in", "r", stdin); ^ user.cpp:117:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("largestroot.out", "w", stdout); ^ user.cpp:120:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &t);; ^ In file included from /usr/include/stdio.h:934:0, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘void sol()’ at user.cpp:76:24: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccDD4seM.o: In function `sol()': user.cpp:(.text+0x325): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms280kbIncorect0
Punctaj total0

Ceva nu functioneaza?