Borderou de evaluare (job #2139130)
Utilizator | Data | 22 februarie 2018 09:44:34 | |
---|---|---|---|
Problema | Suma si numarul divizorilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:44:32: error: invalid types ‘long long int [1000002][<unresolved overloaded function type>]’ for array subscript
while(n % prime[div] == 0){
^
user.cpp:45:31: error: invalid types ‘long long int [1000002][<unresolved overloaded function type>]’ for array subscript
n /= prime[div];
^
user.cpp:46:33: error: invalid types ‘long long int [1000002][<unresolved overloaded function type>]’ for array subscript
put *= prime[div];
^
user.cpp:49:29: error: invalid types ‘long long int [1000002][<unresolved overloaded function type>]’ for array subscript
put *= prime[div];
^
user.cpp:51:57: error: invalid types ‘long long int [1000002][<unresolved overloaded function type>]’ for array subscript
sumdiv *= (long long)((put - 1) / (prime[div] - 1));
^
user.cpp:52:16: error: no post-increment operator for type
div++;
^
user.cpp:32:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ssnd.in", "r", stdin);
^
user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ssnd.out", "w", stdout);
^
user.cpp:35:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:39:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !