Borderou de evaluare (job #1566121)
Utilizator | Data | 11 ianuarie 2016 20:01:39 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; (1<<i) <= p; ++i){
^
user.cpp:2:11: error: expected primary-expression before ‘=’ token
#define m = 1999999973;
^
user.cpp:12:31: note: in expansion of macro ‘m’
sol = (sol * a) % m;
^
user.cpp:2:11: error: expected primary-expression before ‘=’ token
#define m = 1999999973;
^
user.cpp:13:23: note: in expansion of macro ‘m’
a = (a * a) % m;
^
user.cpp:6:36: 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:7:38: 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:8:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !