Pagini recente » Borderou de evaluare (job #2245327) | Borderou de evaluare (job #2094270) | Borderou de evaluare (job #2103875) | Borderou de evaluare (job #495076) | Borderou de evaluare (job #1707665)
Borderou de evaluare (job #1707665)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:226:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[i-1][j]!=p[i][j]&&s[a[i-1][j]]>maxarea){
^
user.cpp:232:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[i+1][j]!=p[i][j]&&s[a[i+1][j]]>maxarea){
^
user.cpp:238:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[i][j-1]!=p[i][j]&&s[a[i][j-1]]>maxarea){
^
user.cpp:244:48: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (p[i][j+1]!=p[i][j]&&s[a[i][j+1]]>maxarea){
^
user.cpp:55:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.in", "r", stdin);
^
user.cpp:56:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ferma3.out", "w", stdout);
^
user.cpp:59:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v);
^
user.cpp:60:28: 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:62:21: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a[i]+1);
^
user.cpp:253:46: warning: ‘culoare’ may be used uninitialized in this function [-Wmaybe-uninitialized]
printf("%d %d\n%c\n", maxl, maxc, culoare);
^
user.cpp:232:35: warning: ‘area’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (p[i+1][j]!=p[i][j]&&s[a[i+1][j]]>maxarea){
^
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:62:21:
/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/cc2VBrIT.o: In function `main':
user.cpp:(.text.startup+0x9d): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 624kb | Corect! Varianta 1 | 5 |
2 | 0ms | 660kb | Corect! Varianta 1 | 5 |
3 | 0ms | 1036kb | Corect! Varianta 1 | 5 |
4 | 4ms | 1572kb | Corect! Varianta 1 | 5 |
5 | 8ms | 2952kb | Corect! Varianta 1 | 5 |
6 | 0ms | 316kb | Corect! Varianta 2 | 5 |
7 | 0ms | 524kb | Corect! Varianta 2 | 5 |
8 | 0ms | 508kb | Corect! Varianta 2 | 5 |
9 | 0ms | 628kb | Corect! Varianta 2 | 5 |
10 | 0ms | 628kb | Corect! Varianta 2 | 5 |
11 | 0ms | 816kb | Corect! Varianta 2 | 5 |
12 | 4ms | 1144kb | Corect! Varianta 2 | 5 |
13 | 4ms | 2008kb | Corect! Varianta 2 | 5 |
14 | 4ms | 1276kb | Corect! Varianta 2 | 5 |
15 | 4ms | 1564kb | Corect! Varianta 2 | 5 |
16 | 4ms | 1612kb | Corect! Varianta 2 | 5 |
17 | 8ms | 1660kb | Corect! Varianta 2 | 5 |
18 | 4ms | 1616kb | Corect! Varianta 2 | 5 |
19 | 12ms | 2304kb | Corect! Varianta 2 | 5 |
20 | 0ms | 316kb | Corect! Varianta 1 | 5 |
Punctaj total | 100 |