Pagini recente » Borderou de evaluare (job #2132644) | Borderou de evaluare (job #2419157) | Borderou de evaluare (job #2729687) | Borderou de evaluare (job #3245305) | Borderou de evaluare (job #1335088)
Borderou de evaluare (job #1335088)
Raport evaluator
Compilare:
user.cpp: In function ‘void caut_binar(int)’:
user.cpp:25:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x==n)
^
user.cpp:28:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (x<n)
^
user.cpp:30:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if (x>n) dr=mid-1;}
^
user.cpp:32:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf ("%d", mid-fix(mid));
^
user.cpp: In function ‘int main()’:
user.cpp:37:7: warning: unused variable ‘i’ [-Wunused-variable]
int n,i;
^
user.cpp:35:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{freopen ("fact.in", "r", stdin);
^
user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("fact.out", "w", stdout);
^
user.cpp:38:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &n);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 248kb | Corect! | 5 |
2 | 0ms | 252kb | Corect! | 5 |
3 | 0ms | 252kb | Raspuns incorect | 0 |
4 | 0ms | 248kb | Corect! | 5 |
5 | 0ms | 252kb | Corect! | 5 |
6 | 0ms | 256kb | Corect! | 5 |
7 | 0ms | 252kb | Corect! | 5 |
8 | 0ms | 252kb | Corect! | 5 |
9 | 0ms | 252kb | Corect! | 5 |
10 | 0ms | 252kb | Corect! | 5 |
11 | 0ms | 252kb | Corect! | 5 |
12 | 0ms | 252kb | Corect! | 5 |
13 | 0ms | 256kb | Corect! | 5 |
14 | 0ms | 252kb | Corect! | 5 |
15 | 0ms | 248kb | Raspuns incorect | 0 |
16 | 0ms | 252kb | Corect! | 5 |
17 | 0ms | 256kb | Corect! | 5 |
18 | 0ms | 256kb | Corect! | 5 |
19 | 0ms | 256kb | Corect! | 5 |
20 | 0ms | 252kb | Corect! | 5 |
Punctaj total | 90 |