Pagini recente » Borderou de evaluare (job #2063142) | Borderou de evaluare (job #722843) | Borderou de evaluare (job #1720422) | Borderou de evaluare (job #1718450) | Borderou de evaluare (job #1187023)
Borderou de evaluare (job #1187023)
Raport evaluator
Compilare:
user.cpp: In function ‘void load(long long int, int*)’:
user.cpp:59:21: 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 ‘void sub(int*, int*)’:
user.cpp:75:16: warning: unused variable ‘tt’ [-Wunused-variable]
int i, t = 0, tt = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:124:16: warning: variable ‘norig’ set but not used [-Wunused-but-set-variable]
long long n, norig;
^
user.cpp:117:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen( FILE_IN, "r", stdin );
^
user.cpp:118:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen( FILE_OUT, "w", stdout );
^
user.cpp:121:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:125:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
user.cpp: At global scope:
user.cpp:33:21: warning: ‘float randf()’ declared ‘static’ but never defined [-Wunused-function]
static float inline randf();
^
user.cpp:34:21: warning: ‘float randfr()’ declared ‘static’ but never defined [-Wunused-function]
static float inline randfr();
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 436kb | Incorect | 0 |
Punctaj total | 0 |