Pagini recente » Borderou de evaluare (job #2198318) | Borderou de evaluare (job #2550622) | Borderou de evaluare (job #1154726) | Borderou de evaluare (job #173184) | Borderou de evaluare (job #2189335)
Borderou de evaluare (job #2189335)
Raport evaluator
Compilare:
user.cpp: In function ‘void hn_adun(int*, int*, int*)’:
user.cpp:13:24: warning: ‘sizeof’ on array function parameter ‘c’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(c,0,sizeof(c));
^
user.cpp:10:55: note: declared here
void hn_adun(int a[NMAX+5],int b[NMAX+5], int c[NMAX+5])
^
user.cpp:13:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(c));
^
user.cpp: In function ‘void hn_constr(int, int*)’:
user.cpp:27:24: warning: ‘sizeof’ on array function parameter ‘x’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(x,0,sizeof(x));
^
user.cpp:25:34: note: declared here
void hn_constr(int n,int x[NMAX+5])
^
user.cpp:27:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(x,0,sizeof(x));
^
user.cpp: In function ‘int main()’:
user.cpp:64:5: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
while(scanf("%c",&ch)&&ch!='\n')
^~~~~
user.cpp:66:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
scanf("%lld",&d);
^~~~~
user.cpp:61:9: warning: unused variable ‘i’ [-Wunused-variable]
int i=1;
^
user.cpp:58:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.in","r",stdin);
^
user.cpp:59:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.out","w",stdout);
^
user.cpp:66:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&d);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 7908kb | OK | 10 |
2 | 4ms | 7904kb | OK | 10 |
3 | 0ms | 2700kb | OK | 10 |
4 | 4ms | 2708kb | OK | 10 |
5 | 12ms | 7908kb | OK | 10 |
6 | 36ms | 7908kb | OK | 10 |
7 | 88ms | 7908kb | Incorect | 0 |
8 | 216ms | 9956kb | Incorect | 0 |
9 | 292ms | 9952kb | Incorect | 0 |
10 | 336ms | 10132kb | Incorect | 0 |
Punctaj total | 60 |