Pagini recente » Borderou de evaluare (job #2160841) | Borderou de evaluare (job #2608320) | Borderou de evaluare (job #920097) | Borderou de evaluare (job #2905745) | Borderou de evaluare (job #1502253)
Borderou de evaluare (job #1502253)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int doit(long long int, long long int)’:
user.cpp:9:36: warning: value computed is not used [-Wunused-value]
if (p < 0) doit(1/n, p * (-1)) % MOD;
^
user.cpp: In function ‘int main()’:
user.cpp:24:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d", doit(n, p));
^
user.cpp: In function ‘long long int doit(long long int, long long int)’:
user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:19:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lgput.in","r",stdin);
^
user.cpp:20:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("lgput.out","w",stdout);
^
user.cpp:22:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld\n", &n, &p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 280kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 0ms | 284kb | OK | 10 |
4 | 0ms | 288kb | OK | 10 |
5 | 0ms | 288kb | OK | 10 |
6 | 0ms | 288kb | OK | 10 |
7 | 0ms | 280kb | OK | 10 |
8 | 0ms | 284kb | OK | 10 |
9 | 0ms | 284kb | OK | 10 |
10 | 0ms | 284kb | OK | 10 |
Punctaj total | 100 |