Borderou de evaluare (job #970535)
| Utilizator | Data | 7 iulie 2013 09:33:55 | |
|---|---|---|---|
| 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:9:53: error: expected ‘,’ or ‘...’ before ‘%’ token
long long int Functionexpbysquaring(long long int x % m,long long int n)
^
user.cpp: In function ‘long long int Functionexpbysquaring(long long int)’:
user.cpp:11:6: error: ‘n’ was not declared in this scope
if (n < 0) return Functionexpbysquaring(1/x,-n);
^
user.cpp: In function ‘int main()’:
user.cpp:25:35: error: too many arguments to function ‘long long int Functionexpbysquaring(long long int)’
sol = Functionexpbysquaring(n, p);
^
user.cpp:9:15: note: declared here
long long int Functionexpbysquaring(long long int x % m,long long int n)
^
user.cpp:20:19: warning: unused variable ‘i’ [-Wunused-variable]
long long int i, n, p;
^
user.cpp: In function ‘long long int Functionexpbysquaring(long long int)’:
user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
