Borderou de evaluare (job #1589566)
Utilizator | Data | 4 februarie 2016 10:33:11 | |
---|---|---|---|
Problema | Pariuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:14: warning: ISO C99 requires whitespace after the macro name [enabled by default]
#define maxim=1000081;
^
user.cpp: In function ‘celula* find_nod(int, int)’:
user.cpp:13:20: error: ‘a’ was not declared in this scope
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:2:14: error: expected primary-expression before ‘=’ token
#define maxim=1000081;
^
user.cpp:13:27: note: in expansion of macro ‘maxim’
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:2:22: error: expected ‘]’ before ‘;’ token
#define maxim=1000081;
^
user.cpp:13:27: note: in expansion of macro ‘maxim’
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:13:32: error: expected primary-expression before ‘]’ token
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:13:32: error: expected ‘;’ before ‘]’ token
user.cpp:13:32: error: expected primary-expression before ‘]’ token
user.cpp:13:32: error: expected ‘)’ before ‘]’ token
user.cpp:13:32: error: expected primary-expression before ‘]’ token
user.cpp:13:32: error: expected ‘;’ before ‘]’ token
user.cpp:13:18: warning: unused variable ‘l’ [-Wunused-variable]
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:13:34: error: ‘l’ was not declared in this scope
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:13:51: error: expected ‘;’ before ‘)’ token
for(lista l=a[timp%maxim];l!=NULL;l=l->next){
^
user.cpp:12:12: warning: unused variable ‘u’ [-Wunused-variable]
bool u=false;
^
user.cpp:45:1: error: expected ‘}’ at end of input
}
^
user.cpp:45:1: warning: no return statement in function returning non-void [-Wreturn-type]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !