Borderou de evaluare (job #1200708)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 23 iunie 2014 13:39:08
Problema Zimeria Status done
Runda oni_2014_cls_10_ziua_1 Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘bool Cmp(char*, char*)’: user.cpp:21:19: warning: array subscript has type ‘char’ [-Wchar-subscripts] return Ap[A[x]] < Ap[B[x]]; ^ user.cpp:21:30: warning: array subscript has type ‘char’ [-Wchar-subscripts] return Ap[A[x]] < Ap[B[x]]; ^ user.cpp: In function ‘int main()’: user.cpp:32:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] Ap[Alf[i]] = i; ^ user.cpp:25:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.in", "r", stdin); ^ user.cpp:26:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("zimeria.out", "w", stdout); ^ user.cpp:27:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &Tip); ^ user.cpp:28:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &n); ^ user.cpp:29:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(Alf); ^ user.cpp:34:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i]); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:34:19: /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/ccoxz0Jv.o: In function `main': user.cpp:(.text.startup+0x102): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK5
28ms288kbOK5
3Depăşit592kbTime limit exceeded.0
4Depăşit932kbTime limit exceeded.0
5Depăşit1616kbTime limit exceeded.0
6Depăşit2980kbTime limit exceeded.0
70ms276kbOK5
88ms276kbOK5
940ms288kbOK5
10264ms312kbOK5
11Depăşit324kbTime limit exceeded.0
12Depăşit388kbTime limit exceeded.0
13Depăşit528kbTime limit exceeded.0
14Depăşit796kbTime limit exceeded.0
15Depăşit932kbTime limit exceeded.0
16Depăşit1280kbTime limit exceeded.0
17Depăşit1612kbTime limit exceeded.0
18Depăşit1956kbTime limit exceeded.0
19Depăşit2440kbTime limit exceeded.0
20Depăşit2980kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?