Pagini recente » Borderou de evaluare (job #2695858) | Borderou de evaluare (job #2817598) | Borderou de evaluare (job #2410831) | Borderou de evaluare (job #496535) | Borderou de evaluare (job #1197834)
Borderou de evaluare (job #1197834)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permutare2.in","r",stdin);
^
user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("permutare2.out","w",stdout);
^
user.cpp:28:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:29:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:30:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sir+1);////sar peste a doua linie ca este inutila
^
user.cpp:34:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&ai);
^
user.cpp:13:26: warning: array subscript is below array bounds [-Warray-bounds]
return ap[dr]-ap[st-1];
^
user.cpp:9:24: warning: array subscript is below array bounds [-Warray-bounds]
return s[dr]-s[st-1];
^
user.cpp:9:24: warning: array subscript is below array bounds [-Warray-bounds]
return s[dr]-s[st-1];
^
user.cpp:13:26: warning: array subscript is below array bounds [-Warray-bounds]
return ap[dr]-ap[st-1];
^
/tmp/ccVPc3bP.o: In function `main':
user.cpp:(.text.startup+0x7e): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 300kb | OK | 10 |
2 | 0ms | 292kb | OK | 10 |
3 | 0ms | 304kb | OK | 10 |
4 | 0ms | 312kb | OK | 10 |
5 | 4ms | 608kb | OK | 10 |
6 | 28ms | 936kb | OK | 10 |
7 | 28ms | 1148kb | OK | 10 |
8 | 32ms | 1792kb | OK | 10 |
9 | 36ms | 2008kb | OK | 10 |
10 | 40ms | 2416kb | OK | 10 |
Punctaj total | 100 |