Borderou de evaluare (job #1484265)
Utilizator | Data | 10 septembrie 2015 18:01:16 | |
---|---|---|---|
Problema | Roata | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:1: error: ‘n’ does not name a type
n,p,c[100002],i,j,k,s;
^
user.cpp: In function ‘int main()’:
user.cpp:7:8: error: ‘n’ was not declared in this scope
{ f>>n>>p;
^
user.cpp:7:11: error: ‘p’ was not declared in this scope
{ f>>n>>p;
^
user.cpp:8:9: error: ‘i’ was not declared in this scope
for(i=1; i<=n; i++) {f>>c[i]; s+=c[i];}
^
user.cpp:8:29: error: ‘c’ was not declared in this scope
for(i=1; i<=n; i++) {f>>c[i]; s+=c[i];}
^
user.cpp:8:35: error: ‘s’ was not declared in this scope
for(i=1; i<=n; i++) {f>>c[i]; s+=c[i];}
^
user.cpp:12:8: error: ‘s’ was not declared in this scope
g<<s<<"\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !