Pagini recente » Cod sursa (job #1752501) | Borderou de evaluare (job #1986588) | Borderou de evaluare (job #1007559) | Borderou de evaluare (job #2332035) | Borderou de evaluare (job #1839270)
Borderou de evaluare (job #1839270)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:58: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:59: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:63:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &op);
^
user.cpp:64:28: 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:66:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a[i] + 1);
^
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:66: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/ccflueRL.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 | 628kb | Gresit! | 0 |
2 | 0ms | 720kb | Corect! Varianta 1 | 5 |
3 | 0ms | 992kb | Corect! Varianta 1 | 5 |
4 | 4ms | 1040kb | Gresit! | 0 |
5 | 20ms | 6220kb | Corect! Varianta 1 | 5 |
6 | 0ms | 464kb | Gresit! | 0 |
7 | 0ms | 572kb | Corect! Varianta 2 | 5 |
8 | 0ms | 568kb | Gresit! | 0 |
9 | 0ms | 628kb | Gresit! | 0 |
10 | 0ms | 628kb | Gresit! | 0 |
11 | 0ms | 700kb | Gresit! | 0 |
12 | 4ms | 852kb | Gresit! | 0 |
13 | 8ms | 1248kb | Gresit! | 0 |
14 | 4ms | 916kb | Gresit! | 0 |
15 | 8ms | 1188kb | Killed by signal 11(SIGSEGV). | 0 |
16 | 8ms | 976kb | Killed by signal 11(SIGSEGV). | 0 |
17 | 12ms | 1044kb | Gresit! | 0 |
18 | 8ms | 1236kb | Killed by signal 11(SIGSEGV). | 0 |
19 | 12ms | 1216kb | Killed by signal 11(SIGSEGV). | 0 |
20 | 0ms | 468kb | Corect! Varianta 1 | 5 |
Punctaj total | 25 |