Borderou de evaluare (job #1912565)

Utilizator virtualityBbbbbbbbbbbbbbbbbb virtuality Data 8 martie 2017 09:39:14
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

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
10ms440kbIncorect00
20ms440kbIncorect00
30ms440kbIncorect00
44ms444kbIncorect00
520ms512kbIncorect00
672ms828kbIncorect0
724msDepăşitMemory limit exceeded.00
828msDepăşitMemory limit exceeded.0
928msDepăşitMemory limit exceeded.0
1028msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?