Borderou de evaluare (job #1471768)

Utilizator theprdvtheprdv theprdv Data 15 august 2015 08:10:24
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 75

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:43:34: 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:44:36: 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:47:26: 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:52:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(W[i].A); ^ user.cpp:65:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &t); ^ user.cpp:69:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &val); ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from user.cpp:3: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:52: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/ccc1xxk2.o: In function `main': user.cpp:(.text.startup+0xb6): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1192ms2064kbOK5
2192ms2060kbOK5
320ms2420kbOK5
420ms2420kbOK5
520ms2404kbOK5
620ms2408kbOK5
7200ms2964kbOK5
8196ms2924kbOK5
9188ms2960kbOK5
10196ms2056kbOK5
11188ms2060kbOK5
12192ms2056kbOK5
13192ms2056kbOK5
14192ms2056kbOK5
15196ms2056kbOK5
1680msDepăşitMemory limit exceeded.0
1780msDepăşitMemory limit exceeded.0
1880msDepăşitMemory limit exceeded.0
1980msDepăşitMemory limit exceeded.0
2080msDepăşitMemory limit exceeded.0
Punctaj total75

Ceva nu functioneaza?