Borderou de evaluare (job #1841455)

Utilizator bogdan10bosBogdan Sitaru bogdan10bos Data 5 ianuarie 2017 17:27:06
Problema Tort3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 35

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tort3.in", "r", stdin); ^ user.cpp:19:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("tort3.out", "w", stdout); ^ user.cpp:22:28: 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:24:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[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 ‘int main()’ at user.cpp:24:23: /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/ccPcTLAB.o: In function `main': user.cpp:(.text.startup+0x82): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms500kbOK5
20ms504kbOK5
30ms668kbOK5
40ms664kbOK5
50ms588kbOK5
60ms668kbOK5
7Depăşit3604kbTime limit exceeded.0
8Depăşit3604kbTime limit exceeded.0
9Depăşit3548kbTime limit exceeded.0
10Depăşit2968kbTime limit exceeded.0
11Depăşit3492kbTime limit exceeded.0
12464ms2684kbOK5
13Depăşit3096kbTime limit exceeded.0
14Depăşit3488kbTime limit exceeded.0
15Depăşit3612kbTime limit exceeded.0
16Depăşit3340kbTime limit exceeded.0
17Depăşit3604kbTime limit exceeded.0
18Depăşit3172kbTime limit exceeded.0
19Depăşit3320kbTime limit exceeded.0
20Depăşit3604kbTime limit exceeded.0
Punctaj total35

Ceva nu functioneaza?