Borderou de evaluare (job #1368133)
Utilizator | Data | 2 martie 2015 14:24:34 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:18: error: size of array ‘f’ is too large
int f[20000000001];
^
user.cpp: In function ‘int main()’:
user.cpp:16:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int d=1;d*d<i;d++)
^
user.cpp:17:26: error: ‘f’ was not declared in this scope
if (i%d==0) {f[i]=f[i]+2;}
^
user.cpp:18:38: error: ‘f’ was not declared in this scope
if (sqrt(i)==floor(sqrt(i))) f[i]++;
^
user.cpp:19:17: error: ‘f’ was not declared in this scope
if (max<f[i]) max=f[i];
^
user.cpp:25:13: error: ‘f’ was not declared in this scope
if (f[i]==max&&ok==0) {fout<<i<<" ";ok=1;}
^
user.cpp:26:13: error: ‘f’ was not declared in this scope
if (f[i]==max) k++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !