Borderou de evaluare (job #1407976)
Utilizator | UAIC-Tucar-Onesim UAIC_Onesim_Popoiu_Tucar | Data | 29 martie 2015 19:48:06 |
---|---|---|---|
Problema | Comoditate | Status | done |
Runda | ONIS 2015, Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:17:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&n,&m);
^
user.cpp:17:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:24:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld %ld",&x,&y);
^
user.cpp:24:30: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp: At global scope:
user.cpp:30:28: error: redefinition of ‘std::list<element>::iterator it’
}list <element> ::iterator it;
^
user.cpp:11:27: error: ‘std::list<element>::iterator it’ previously declared here
list <element> ::iterator it;
^
user.cpp: In function ‘void dfs(int)’:
user.cpp:39:19: error: ‘itlist’ was not declared in this scope
dfs((*itlist <element> ::iterator it;).n);
^
user.cpp:39:34: error: expected primary-expression before ‘>’ token
dfs((*itlist <element> ::iterator it;).n);
^
user.cpp:39:47: error: missing template arguments before ‘it’
dfs((*itlist <element> ::iterator it;).n);
^
user.cpp:39:47: error: expected ‘)’ before ‘it’
user.cpp:39:50: error: expected primary-expression before ‘)’ token
dfs((*itlist <element> ::iterator it;).n);
^
user.cpp:39:50: error: expected ‘;’ before ‘)’ token
user.cpp: In function ‘int main()’:
user.cpp:48:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&t);
^
user.cpp:58:34: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",1-rez[i]);
^
user.cpp: In function ‘void citire()’:
user.cpp:17:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&n,&m);
^
user.cpp:24:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld %ld",&x,&y);
^
user.cpp: In function ‘int main()’:
user.cpp:46:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("comoditate.in","r",stdin);
^
user.cpp:47:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !