Pagini recente » Borderou de evaluare (job #1174774) | Borderou de evaluare (job #963147) | Borderou de evaluare (job #2324038) | Borderou de evaluare (job #1324711) | Borderou de evaluare (job #2187367)
Borderou de evaluare (job #2187367)
Raport evaluator
Compilare:
user.cpp: In function ‘void constr(long long int, int*)’:
user.cpp:12:24: warning: ‘sizeof’ on array function parameter ‘a’ will return size of ‘int*’ [-Wsizeof-array-argument]
memset(a,0,sizeof(a));
^
user.cpp:10:37: note: declared here
void constr(long long n,int a[NMAX+5])
^
user.cpp:12: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(a,0,sizeof(a));
^
user.cpp: In function ‘int main()’:
user.cpp:58:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%I64d",&d);
^
user.cpp:51: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:52: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:58:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d",&d);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 5304kb | Incorect | 0 |
2 | 4ms | 5312kb | Incorect | 0 |
3 | 4ms | 5312kb | Incorect | 0 |
4 | 8ms | 5344kb | Incorect | 0 |
5 | 16ms | 5432kb | Incorect | 0 |
6 | 36ms | 5700kb | Incorect | 0 |
7 | 92ms | 6328kb | Incorect | 0 |
8 | 232ms | 8468kb | Incorect | 0 |
9 | 304ms | 8460kb | Incorect | 0 |
10 | 348ms | 8464kb | Incorect | 0 |
Punctaj total | 0 |