Borderou de evaluare (job #1781619)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 17 octombrie 2016 09:04:07
Problema Matrice3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:82:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrice3.in", "r", stdin); ^ user.cpp:83:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrice3.out", "w", stdout); ^ user.cpp:85:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n", &n, &m, &q); ^ user.cpp:87:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(v[i] + 1); ^ user.cpp:98:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d", &fi_x, &fi_y, &se_x, &se_y); ^ 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:87: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/cc37MbvT.o: In function `main': user.cpp:(.text.startup+0x84): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms596kbOK10
20ms580kbOK10
30ms652kbOK10
4152ms4008kbOK10
5152ms4132kbOK10
6152ms4128kbOK10
7344ms4004kbOK10
8344ms4004kbOK10
9356ms4136kbOK10
10348ms3972kbOK10
Punctaj total100

Ceva nu functioneaza?