Borderou de evaluare (job #1569603)

Utilizator tudorcomanTudor Coman tudorcoman Data 15 ianuarie 2016 19:44:06
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:49:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.in", "r", stdin); ^ user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.out", "w", stdout); ^ user.cpp:57:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &N, &Q); ^ user.cpp:59:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v[i]); ^ user.cpp:65:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:67:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &ind[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:59:15: /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/cc9h0yGK.o: In function `main': user.cpp:(.text.startup+0x8e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1160kbTime limit exceeded.0
2Depăşit1168kbTime limit exceeded.0
3Depăşit1440kbTime limit exceeded.0
4Depăşit1436kbTime limit exceeded.0
5Depăşit1396kbTime limit exceeded.0
6Depăşit1404kbTime limit exceeded.0
7Depăşit3112kbTime limit exceeded.0
8Depăşit3180kbTime limit exceeded.0
9Depăşit3172kbTime limit exceeded.0
10Depăşit1168kbTime limit exceeded.0
11Depăşit948kbTime limit exceeded.0
12Depăşit1408kbTime limit exceeded.0
13Depăşit1172kbTime limit exceeded.0
14Depăşit1408kbTime limit exceeded.0
15Depăşit1176kbTime limit exceeded.0
16Depăşit21408kbTime limit exceeded.0
17Depăşit21548kbTime limit exceeded.0
18Depăşit21588kbTime limit exceeded.0
19Depăşit21440kbTime limit exceeded.0
20Depăşit21424kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?