Borderou de evaluare (job #2106164)
Utilizator | Data | 15 ianuarie 2018 10:21:03 | |
---|---|---|---|
Problema | Ninjago | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void pune(int, int, char*)’:
user.cpp:8:5: error: ‘sz’ was not declared in this scope
sz=lst[x].size();
^
user.cpp:8:8: error: ‘lst’ was not declared in this scope
sz=lst[x].size();
^
user.cpp:10:34: error: ‘strcpy’ was not declared in this scope
strcpy(lst[x][sz].sir+1,sir+1);
^
user.cpp: In function ‘int main()’:
user.cpp:18:21: error: ‘t’ was not declared in this scope
scanf("%d%d%d",&t,&nnod,nmuc);
^
user.cpp:18:24: error: ‘nnod’ was not declared in this scope
scanf("%d%d%d",&t,&nnod,nmuc);
^
user.cpp:18:29: error: ‘nmuc’ was not declared in this scope
scanf("%d%d%d",&t,&nnod,nmuc);
^
user.cpp:20:10: error: ‘imuc’ was not declared in this scope
for (imuc=1;imuc<=nmuc;++imuc)
^
user.cpp:22:25: error: ‘x’ was not declared in this scope
scanf("%d%d%s",&x,&y,&sir);
^
user.cpp:22:28: error: ‘y’ was not declared in this scope
scanf("%d%d%s",&x,&y,&sir);
^
user.cpp:22:31: error: ‘sir’ was not declared in this scope
scanf("%d%d%s",&x,&y,&sir);
^
user.cpp:32:5: error: expected ‘(’ before ‘}’ token
}
^
user.cpp:32:5: error: expected primary-expression before ‘}’ token
user.cpp:32:5: error: expected ‘;’ before ‘}’ token
user.cpp:32:5: error: expected primary-expression before ‘}’ token
user.cpp:32:5: error: expected ‘;’ before ‘}’ token
user.cpp:32:5: error: expected primary-expression before ‘}’ token
user.cpp:32:5: error: expected ‘)’ before ‘}’ token
user.cpp:32:5: error: expected primary-expression before ‘}’ token
user.cpp:32:5: error: expected ‘;’ before ‘}’ token
user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ninjago.in","r",stdin);
^
user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("ninjago.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !