Pagini recente » Borderou de evaluare (job #2311320) | Borderou de evaluare (job #1989956) | Borderou de evaluare (job #2577899) | Borderou de evaluare (job #1150827) | Borderou de evaluare (job #2282819)
Borderou de evaluare (job #2282819)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:16:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; (1<<i) <= p; ++ i)
~~~~~~~^~~~
main.cpp:18:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if ( ((1<<i) & p) > 0)
^~
main.cpp:21:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
a=(a * a) % m;
^
main.cpp:12: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:13: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:14: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 |