Borderou de evaluare (job #1900456)
Utilizator | Data | 3 martie 2017 13:14:26 | |
---|---|---|---|
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:14:5: error: expected initializer before ‘fi’
fi >> C >> p >> s >> n;
^
user.cpp:15:10: error: ‘C’ was not declared in this scope
if ( C == 1 ) {
^
user.cpp:16:21: error: ‘p’ was not declared in this scope
bool ocupat[p+1];
^
user.cpp:18:23: error: ‘n’ was not declared in this scope
for(int i=0;i<n;i++){
^
user.cpp:19:17: error: ‘pist’ was not declared in this scope
fi>>pist>>sect;
^
user.cpp:19:23: error: ‘sect’ was not declared in this scope
fi>>pist>>sect;
^
user.cpp:20:16: error: ‘ocupat’ was not declared in this scope
if(ocupat[pist]==false)
^
user.cpp:22:13: error: ‘ocupat’ was not declared in this scope
ocupat[pist]=true;
^
user.cpp:27:29: error: ‘n’ was not declared in this scope
for( int i = 0; i < n; i ++ ) {
^
user.cpp:28:19: error: ‘x’ was not declared in this scope
fi >> x >> y;
^
user.cpp:28:24: error: ‘y’ was not declared in this scope
fi >> x >> y;
^
user.cpp:31:9: error: ‘rez’ was not declared in this scope
rez = curr = 0;
^
user.cpp:31:15: error: ‘curr’ was not declared in this scope
rez = curr = 0;
^
user.cpp:32:9: error: ‘st’ was not declared in this scope
st=1;
^
user.cpp:33:38: error: expected primary-expression before ‘]’ token
for ( int dr = 1; dr < oc [ ]; j ++ ){
^
user.cpp:33:41: error: ‘j’ was not declared in this scope
for ( int dr = 1; dr < oc [ ]; j ++ ){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !