Pagini recente » Borderou de evaluare (job #1973491) | Borderou de evaluare (job #379578) | Borderou de evaluare (job #250726) | Borderou de evaluare (job #793527) | Borderou de evaluare (job #1912565)
Borderou de evaluare (job #1912565)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:39:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:41:42: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
for(int i=1;i<=n;i++) scanf("%ld", &a[i]);
^
user.cpp:46:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
scanf("%d%ld", &x, &y);
^
user.cpp:37:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.in", "r", stdin);
^
user.cpp:38:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.out", "w", stdout);
^
user.cpp:39:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:41:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(int i=1;i<=n;i++) scanf("%ld", &a[i]);
^
user.cpp:42:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:46:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%ld", &x, &y);
^
user.cpp: In function ‘int caut0(long long int)’:
user.cpp:6:18: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int st=1, dr=n, m;
^
user.cpp: In function ‘int caut1(long long int)’:
user.cpp:17:18: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int st=1, dr=n, m;
^
user.cpp: In function ‘int caut2(long long int)’:
user.cpp:27:18: warning: ‘m’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int st=1, dr=n, m;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 440kb | Incorect | 0 | 0 |
2 | 0ms | 440kb | Incorect | 0 | 0 |
3 | 0ms | 440kb | Incorect | 0 | 0 |
4 | 4ms | 444kb | Incorect | 0 | 0 |
5 | 20ms | 512kb | Incorect | 0 | 0 |
6 | 72ms | 828kb | Incorect | 0 |
7 | 24ms | Depăşit | Memory limit exceeded. | 0 | 0 |
8 | 28ms | Depăşit | Memory limit exceeded. | 0 |
9 | 28ms | Depăşit | Memory limit exceeded. | 0 |
10 | 28ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 0 |