Borderou de evaluare (job #970536)
| Utilizator | Data | 7 iulie 2013 09:36:56 | |
|---|---|---|---|
| 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 ‘long long int Functionexpbysquaring(long long int, long long int)’:
user.cpp:15:86: error: too few arguments to function ‘long long int Functionexpbysquaring(long long int, long long int)’
else if (n % 2 != 0) return (x % m) * Functionexpbysquaring(((x % m)*(x % m)) % m), (n-1)/2);
^
user.cpp:9:15: note: declared here
long long int Functionexpbysquaring(long long int x,long long int n)
^
user.cpp:15:96: error: expected ‘;’ before ‘)’ token
else if (n % 2 != 0) return (x % m) * Functionexpbysquaring(((x % m)*(x % m)) % m), (n-1)/2);
^
user.cpp:15:96: error: expected primary-expression before ‘)’ token
user.cpp:15:96: error: expected ‘;’ before ‘)’ token
user.cpp: In function ‘int main()’:
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, 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 !
