Pagini recente » Borderou de evaluare (job #1549533) | Borderou de evaluare (job #2359108) | Borderou de evaluare (job #2428931) | Borderou de evaluare (job #2689168) | Borderou de evaluare (job #2272683)
Borderou de evaluare (job #2272683)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; (1<<i) <= p; ++ i) // Luam toti biti lui p la rand
~~~~~~~^~~~
main.cpp:35:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ( ((1<<i) & p) > 0) // Daca bitul i din p este 1 atunci adaugam n^(2^i) la solutie
^~
main.cpp:41:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
a=(a * a) % m; // Inmultim a cu a ca sa obtinem n^(2^(i+1))
^
main.cpp:23:31: 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);
^
main.cpp:25:33: 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);
^
main.cpp:27:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &p);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | OK | 10 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 2ms | 131kb | OK | 10 |
| 4 | 2ms | 131kb | OK | 10 |
| 5 | 2ms | 131kb | OK | 10 |
| 6 | 2ms | 131kb | OK | 10 |
| 7 | 2ms | 131kb | OK | 10 |
| 8 | 2ms | 131kb | OK | 10 |
| 9 | 2ms | 131kb | OK | 10 |
| 10 | 2ms | 131kb | OK | 10 |
| Punctaj total | 100 |