Borderou de evaluare (job #1368128)
Utilizator | Data | 2 martie 2015 14:21:00 | |
---|---|---|---|
Problema | Maxd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:23: error: size of array ‘f’ is too large
long long f[2000000001];
^
user.cpp: In function ‘int main()’:
user.cpp:13:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=a;i<=b;i++)
^
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:23:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=a;i<=b;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 !