Borderou de evaluare (job #1970831)

Utilizator andru47Stefanescu Andru andru47 Data 19 aprilie 2017 17:21:00
Problema Matrix Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrix.in", "r", stdin); ^ user.cpp:9:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("matrix.out", "w", stdout); ^ user.cpp:11:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &m, &n); ^ user.cpp:13:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ user.cpp:19:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &chr); ^ user.cpp:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("\n"); ^ 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:13: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/ccazK0ez.o: In function `main': user.cpp:(.text.startup+0x83): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
124ms4428kbOK5
228ms4476kbOK5
328ms4516kbOK5
428ms4592kbOK5
528ms4676kbOK5
628ms4656kbOK5
728ms4712kbOK5
832ms4896kbOK5
932ms4944kbOK5
1036ms4988kbOK5
1144ms5480kbOK5
1264ms5972kbOK5
1384ms6068kbOK5
14112ms6560kbOK5
15168ms5568kbOK5
16156ms6760kbOK5
17232ms7856kbOK5
18220ms6692kbOK5
19220ms5700kbOK5
20224ms7216kbOK5
Punctaj total100

Ceva nu functioneaza?