Pagini recente » Borderou de evaluare (job #2474302) | Borderou de evaluare (job #2683001) | Borderou de evaluare (job #2356050) | Borderou de evaluare (job #287494) | Borderou de evaluare (job #1481964)
Borderou de evaluare (job #1481964)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:81: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
for (i=2;i<=n-1;i++) last=last+lcp(v[i],v[i+1]),printf("%d\n",1LL*i*(i+1)/2-last); last=0;
^
user.cpp:46:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",1LL*n*(n+1)/2-last);
^
user.cpp:24:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prefix2.in","r",stdin);
^
user.cpp:25:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("prefix2.out","w",stdout);
^
user.cpp:26:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1); n=strlen(s+1);
^
/tmp/ccQ3w1u6.o: In function `main':
user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 260kb | Incorect | 0 |
2 | 0ms | 336kb | Incorect | 0 |
3 | 40ms | 1040kb | Incorect | 0 |
4 | 44ms | 1040kb | Incorect | 0 |
5 | 44ms | 1036kb | Incorect | 0 |
6 | 164ms | 2672kb | Incorect | 0 |
7 | 308ms | 4464kb | Incorect | 0 |
8 | Depăşit | 6556kb | Time limit exceeded. | 0 |
9 | Depăşit | 6552kb | Time limit exceeded. | 0 |
10 | Depăşit | 6556kb | Time limit exceeded. | 0 |
Punctaj total | 0 |