Pagini recente » Borderou de evaluare (job #3003597) | Borderou de evaluare (job #2686045) | Borderou de evaluare (job #369018) | Borderou de evaluare (job #527516) | Borderou de evaluare (job #1407901)
Borderou de evaluare (job #1407901)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:11:18: warning: unused variable ‘rest’ [-Wunused-variable]
long long suma, rest, num, M, minul, maxul;
^
user.cpp:13:15: warning: variable ‘produs’ set but not used [-Wunused-but-set-variable]
double prob, produs;
^
user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mafia.in", "r", stdin);
^
user.cpp:9:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mafia.out", "w", stdout);
^
user.cpp:15:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &T);
^
user.cpp:20:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%lld%d", &N, &M, &X);
^
user.cpp:23:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &elem);
^
user.cpp:30:30: warning: ‘num’ may be used uninitialized in this function [-Wmaybe-uninitialized]
minul = min(suma - M, suma - num + 1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 240ms | 284kb | OK | 100 |
Punctaj total | 100 |