Borderou de evaluare (job #1347313)
Utilizator | Data | 18 februarie 2015 21:44:24 | |
---|---|---|---|
Problema | Magic Numbers | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:9:8: error: expected ‘,’ or ‘;’ before ‘int’
int x,y,i,j,n,cnt=0;
^
user.cpp:10:10: error: ‘x’ was not declared in this scope
cin>>x;
^
user.cpp:11:10: error: ‘y’ was not declared in this scope
cin>>y;
^
user.cpp:12:9: error: ‘i’ was not declared in this scope
for(i=2;i<=y/2;i++)
^
user.cpp:13:12: error: ‘j’ was not declared in this scope
for(j=x/i*i;j<=y;j=j+i)
^
user.cpp:16:7: error: ‘i’ was not declared in this scope
for(i=x;i<=y;i++)
^
user.cpp:17:28: error: ‘cnt’ was not declared in this scope
if (i%(ciur[i]+1)==0) cnt++;
^
user.cpp:19:7: error: ‘cout’ was not declared in this scope
cout<<cnt;
^
user.cpp:19:13: error: ‘cnt’ was not declared in this scope
cout<<cnt;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !