Borderou de evaluare (job #1475350)

Utilizator akaprosAna Kapros akapros Data 23 august 2015 21:45:10
Problema Eliminare Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:109:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[9]’ [-Wformat=] scanf("%s %s", &s, &t); ^ user.cpp:109:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[9]’ [-Wformat=] user.cpp: In function ‘void read()’: user.cpp:91:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("eliminare.in", "r", stdin); ^ user.cpp:92:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ user.cpp:95:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp: In function ‘void solve()’: user.cpp:109:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s", &s, &t); ^ user.cpp: In function ‘void write()’: user.cpp:138:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("eliminare.out", "w", stdout); ^ /tmp/cc9JoIcI.o: In function `read()': user.cpp:(.text+0x328): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
120ms796kbOK10
232ms1352kbOK10
3472ms8544kbOK10
41484ms8932kbOK10
51196ms17000kbOK10
61020ms17396kbOK10
71576ms17584kbOK10
8664msDepăşitMemory limit exceeded.0
9692msDepăşitMemory limit exceeded.0
10692msDepăşitMemory limit exceeded.0
Punctaj total70

Ceva nu functioneaza?