Borderou de evaluare (job #1231365)
Utilizator | Data | 20 septembrie 2014 13:19:24 | |
---|---|---|---|
Problema | Suma si numarul divizorilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:1: error: ‘list’ does not name a type
list<int> P;
^
user.cpp: In function ‘void sieve()’:
user.cpp:31:4: error: ‘list’ was not declared in this scope
list.push_back(i);
^
user.cpp: In function ‘int main()’:
user.cpp:75:8: error: ‘list’ was not declared in this scope
for (list<long long>::iterator it = P.begin(); it != P.end() && n > 1; ++it)
^
user.cpp:75:13: error: expected primary-expression before ‘long’
for (list<long long>::iterator it = P.begin(); it != P.end() && n > 1; ++it)
^
user.cpp:75:13: error: expected ‘;’ before ‘long’
user.cpp:75:50: error: ‘it’ was not declared in this scope
for (list<long long>::iterator it = P.begin(); it != P.end() && n > 1; ++it)
^
user.cpp:75:56: error: ‘P’ was not declared in this scope
for (list<long long>::iterator it = P.begin(); it != P.end() && n > 1; ++it)
^
user.cpp:70:13: warning: unused variable ‘sqrt_n’ [-Wunused-variable]
long long sqrt_n = sqrt(n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !