Borderou de evaluare (job #1681114)

Utilizator SmarandaMaria Pandele Smaranda Data 9 aprilie 2016 11:39:38
Problema Mapal Status done
Runda Grigore Moisil 2016 Clasele a 11-12 Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘void addGraph1(int)’: user.cpp:25:9: warning: unused variable ‘i’ [-Wunused-variable] int i, nx, ny; ^ user.cpp: In function ‘void addGraph2(int)’: user.cpp:37:9: warning: unused variable ‘i’ [-Wunused-variable] int i, nx, ny; ^ user.cpp: In function ‘int main()’: user.cpp:67:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("mapal.in", "r", stdin); ^ user.cpp:68:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("mapal.out", "w", stdout); ^ user.cpp:70:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%c", &n, &blank); ^ user.cpp:73:25: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets (s [i] + 1); ^ user.cpp:75:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &l); ^ user.cpp:77:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x); ^ user.cpp:80:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &c); ^ user.cpp:82:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &x); ^ 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:73: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/cc6H9KLt.o: In function `main': user.cpp:(.text.startup+0x8d): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms12120kbOK10
240msDepăşitMemory limit exceeded.0
364msDepăşitMemory limit exceeded.0
432ms13052kbOK10
592msDepăşitMemory limit exceeded.0
640msDepăşitMemory limit exceeded.0
716ms12324kbOK10
840msDepăşitMemory limit exceeded.0
940msDepăşitMemory limit exceeded.0
1040msDepăşitMemory limit exceeded.0
Punctaj total30

Ceva nu functioneaza?