Borderou de evaluare (job #1853197)

Utilizator mariakKapros Maria mariak Data 21 ianuarie 2017 15:04:00
Problema Subsecvente2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void read()’: user.cpp:17:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ user.cpp:19:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(str[i] + 1); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘void read()’ at user.cpp:19:25: /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/ccFJEhMJ.o: In function `read()': user.cpp:(.text+0x3d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms472kbOK5
20ms468kbOK5
30ms492kbOK5
40ms480kbOK5
50ms508kbOK5
60ms496kbOK5
760ms1116kbIncorect0
872ms1184kbIncorect0
944ms1280kbIncorect0
1068ms1332kbIncorect0
1180ms1392kbIncorect0
12128ms1440kbIncorect0
13Depăşit1396kbTime limit exceeded.0
14Depăşit1800kbTime limit exceeded.0
15Depăşit1668kbTime limit exceeded.0
16Depăşit1880kbTime limit exceeded.0
17Depăşit908kbTime limit exceeded.0
18Depăşit768kbTime limit exceeded.0
19Depăşit816kbTime limit exceeded.0
20Depăşit752kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?