Borderou de evaluare (job #2644049)
Utilizator | Data | 22 august 2020 23:26:18 | |
---|---|---|---|
Problema | Divizori Primi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:29:40: error: 'strlen' was not declared in this scope
for (i = (unsigned long long)strlen(p)+1; i > 1 && gasit==false; --i)
^
main.cpp:30:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((p[i] - '0') == k) {
~~~~~~~~~~~~~^~~~
main.cpp:32:11: warning: statement has no effect [-Wunused-value]
gasit == true;
~~~~~~^~~~~~~
main.cpp: In function 'void eratostene(long long unsigned int, char*)':
main.cpp:47:39: error: 'strlen' was not declared in this scope
for (i = (unsigned long long)strlen(p)+1; i > 0; --i) p[i] = nr_div_prim(i);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !