Borderou de evaluare (job #1194780)
Utilizator | Data | 4 iunie 2014 19:35:12 | |
---|---|---|---|
Problema | Maxd | 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:5:24: error: conflicting declaration ‘int a [500]’
{int a,b,i,ma,x,t,a[500];
^
user.cpp:5:6: error: ‘a’ has a previous declaration as ‘int a’
{int a,b,i,ma,x,t,a[500];
^
user.cpp:13:7: error: ‘j’ was not declared in this scope
{for (j=1;j<=i;j++)
^
user.cpp:14:14: error: ‘k’ was not declared in this scope
{if (i%j==0) k=k+1;}
^
user.cpp:15:5: error: ‘k’ was not declared in this scope
if (k>ma) {ma=k;
^
user.cpp:17:15: error: invalid types ‘int[int]’ for array subscript
a[t]=i;}}
^
user.cpp:18:7: error: invalid types ‘int[int]’ for array subscript
g<<a[1]<<" ";
^
user.cpp:5:15: warning: unused variable ‘x’ [-Wunused-variable]
{int a,b,i,ma,x,t,a[500];
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !