Pagini recente » Borderou de evaluare (job #3265128) | Borderou de evaluare (job #1012277) | Borderou de evaluare (job #2252142) | Borderou de evaluare (job #1202143) | Borderou de evaluare (job #2269980)
Borderou de evaluare (job #2269980)
Raport evaluator
Compilare:
main.cpp: In function 'unsigned int nrperechi(int)':
main.cpp:10:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1 ; i <= n ; ++ i) {
~~^~~~
main.cpp:9:9: warning: unused variable 's' [-Wunused-variable]
int s(0), i(1), j(n), cnt(0) ;
^
main.cpp: In function 'unsigned int caut(int)':
main.cpp:21:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (nrperechi (pas + L) < x)
~~~~~~~~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 1 ; i <= n ; ++ i)
~~^~~~
main.cpp:30:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.in","r",stdin) ;
^
main.cpp:31:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.out","w",stdout) ;
^
main.cpp:32:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u %u",&n, &k) ;
^
main.cpp:35:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u",&v[i]) ;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 8ms | 131kb | OK | 10 |
5 | 19ms | 262kb | OK | 10 |
6 | 27ms | 262kb | OK | 10 |
7 | 33ms | 262kb | OK | 10 |
8 | 39ms | 393kb | OK | 10 |
9 | 40ms | 393kb | OK | 10 |
10 | 33ms | 262kb | OK | 10 |
Punctaj total | 100 |