Borderou de evaluare (job #1292411)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 14 decembrie 2014 12:16:27
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:14: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:15: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:16:29: 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:18:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ user.cpp:17:5: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i = 1; i <= n; ++i, scanf("\n")) ^ user.cpp:20:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ 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:18: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/cc3dFvab.o: In function `main': user.cpp:(.text.startup+0x83): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0xbd): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms340kbOK5
20ms416kbOK5
30ms496kbOK5
40ms616kbOK5
50ms724kbOK5
60ms820kbOK5
70ms924kbOK5
84ms1104kbOK5
94ms1308kbOK5
108ms1368kbOK5
1116ms1960kbOK5
1228ms2552kbOK5
1340ms3040kbOK5
1460ms3624kbOK5
15136ms4912kbOK5
16104ms4616kbOK5
17192ms5992kbOK5
18128ms5532kbOK5
19160ms5696kbOK5
20156ms5696kbOK5
Punctaj total100

Ceva nu functioneaza?