Borderou de evaluare (job #1542403)

Utilizator akaprosAna Kapros akapros Data 5 decembrie 2015 12:45:28
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void solve()’: user.cpp:51:9: warning: unused variable ‘i’ [-Wunused-variable] int i, j; ^ user.cpp:51:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp: In function ‘void read()’: user.cpp:22:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.in", "r", stdin); ^ user.cpp:23: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:27:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a[i] + 1); ^ user.cpp: In function ‘void write()’: user.cpp:109:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.out", "w", stdout); ^ 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 ‘void read()’ at user.cpp:27: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/ccrjfAid.o: In function `read()': user.cpp:(.text+0xd0): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1484kbOk!10
20ms1464kbOk!10
30ms1480kbOk!10
40ms1532kbOk!10
54ms1928kbOk!10
64ms1928kbOk!10
720ms2932kbOk!10
844ms4012kbOk!10
9128ms6920kbOk!10
104ms1960kbOk!10
Punctaj total100

Ceva nu functioneaza?