Borderou de evaluare (job #1848133)
Utilizator | Data | 15 ianuarie 2017 15:29:01 | |
---|---|---|---|
Problema | Defrag | 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:7: error: ‘s’ was not declared in this scope
f>>n>>s;
^
user.cpp:15:5: error: ‘j’ was not declared in this scope
for(j=i;j<=n;j++)
^
user.cpp:20:1: error: ‘sum’ was not declared in this scope
sum=sum+a[j];
^
user.cpp:24:4: error: ‘sum’ was not declared in this scope
if(sum==s)
^
user.cpp:26:1: error: expected primary-expression before ‘}’ token
}
^
user.cpp:26:1: error: expected ‘;’ before ‘}’ token
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !