Pagini recente » Borderou de evaluare (job #449551) | Borderou de evaluare (job #1713755) | Borderou de evaluare (job #2018057) | Borderou de evaluare (job #85337) | Borderou de evaluare (job #1877815)
Borderou de evaluare (job #1877815)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:62: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:63: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:66: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:68: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:40:40: warning: ‘res’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int sqrt = get_sqrt(mod); int val, res;
^
user.cpp:8:17: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (1LL * a * b) % mod;
^
user.cpp:40:35: note: ‘val’ was declared here
int sqrt = get_sqrt(mod); int val, res;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 428kb | OK | 10 |
2 | 16ms | 464kb | OK | 10 |
3 | 0ms | 432kb | OK | 10 |
4 | 20ms | 432kb | OK | 10 |
5 | 352ms | 464kb | OK | 10 |
6 | 144ms | 440kb | OK | 10 |
7 | 356ms | 460kb | OK | 10 |
8 | Depăşit | 464kb | Time limit exceeded. | 0 |
9 | 356ms | 464kb | OK | 10 |
10 | 356ms | 460kb | OK | 10 |
Punctaj total | 90 |