Pagini recente » Borderou de evaluare (job #2787087) | Borderou de evaluare (job #1272928) | Borderou de evaluare (job #478431) | Borderou de evaluare (job #430986) | Borderou de evaluare (job #1877841)
Borderou de evaluare (job #1877841)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:73:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dlog.in","r",stdin);
^
user.cpp:74:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dlog.out","w",stdout);
^
user.cpp:77:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d", &tests); tests; --tests) {
^
user.cpp:79:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &mod, &proot, &x);
^
user.cpp: In function ‘int get_pow(int, int, int)’:
user.cpp:51:40: warning: ‘res’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int sqrt = get_sqrt(mod); int val, res;
^
user.cpp:11:17: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (1LL * a * b) % mod;
^
user.cpp:51:35: note: ‘val’ was declared here
int sqrt = get_sqrt(mod); int val, res;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 8ms | 8256kb | OK | 10 |
2 | 16ms | 8260kb | OK | 10 |
3 | 8ms | 8252kb | OK | 10 |
4 | 16ms | 8256kb | OK | 10 |
5 | 120ms | 8264kb | OK | 10 |
6 | 44ms | 8264kb | OK | 10 |
7 | 120ms | 8264kb | OK | 10 |
8 | 196ms | 8256kb | OK | 10 |
9 | 120ms | 8260kb | OK | 10 |
10 | 120ms | 8256kb | OK | 10 |
Punctaj total | 100 |