Pagini recente » Borderou de evaluare (job #2638438) | Borderou de evaluare (job #109505) | Borderou de evaluare (job #2803491) | Borderou de evaluare (job #2295681) | Borderou de evaluare (job #1877824)
Borderou de evaluare (job #1877824)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:63: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:64: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:41:40: warning: ‘res’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int sqrt = get_sqrt(mod); int val, res;
^
user.cpp:10:17: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
return (1LL * a * b) % mod;
^
user.cpp:41:35: note: ‘val’ was declared here
int sqrt = get_sqrt(mod); int val, res;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 16ms | 16060kb | OK | 10 |
2 | 24ms | 16060kb | OK | 10 |
3 | 16ms | 16064kb | OK | 10 |
4 | 24ms | 16060kb | OK | 10 |
5 | 144ms | 16060kb | OK | 10 |
6 | 52ms | 16060kb | OK | 10 |
7 | 144ms | 16060kb | OK | 10 |
8 | 212ms | 16060kb | OK | 10 |
9 | 144ms | 16064kb | OK | 10 |
10 | 144ms | 16064kb | OK | 10 |
Punctaj total | 100 |