Borderou de evaluare (job #2032692)
Utilizator | Data | 5 octombrie 2017 16:23:17 | |
---|---|---|---|
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:18:6: error: ‘long long int p’ redeclared as different kind of symbol
ll n,p;
^
user.cpp:6:4: error: previous declaration of ‘long long int p(long long int, long long int)’
ll p(ll x,ll n)
^
user.cpp: In function ‘int main()’:
user.cpp:21:50: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 4 has type ‘long long int (*)(long long int, long long int)’ [-Wformat=]
fscanf(fopen("lgput.in","r"),"%lld%lld",&n,&p);
^
user.cpp:22:48: error: invalid conversion from ‘long long int (*)(long long int, long long int)’ to ‘long long int’ [-fpermissive]
fprintf(fopen("lgput.out","w"),"%lld",p(n,p));
^
user.cpp:6:4: error: initializing argument 2 of ‘long long int p(long long int, long long int)’ [-fpermissive]
ll p(ll x,ll n)
^
user.cpp:21:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fopen("lgput.in","r"),"%lld%lld",&n,&p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !