Borderou de evaluare (job #1525190)
Utilizator | Data | 14 noiembrie 2015 20:16:39 | |
---|---|---|---|
Problema | Secventa 5 | 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:26:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1 ; i <= n ; ++i) {
^
user.cpp:33:5: error: ‘g’ was not declared in this scope
g << sol;
^
user.cpp: In function ‘unsigned int solve(unsigned int)’:
user.cpp:46:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1 ; i <= n ; ++i) {
^
user.cpp:49:13: warning: unused variable ‘x’ [-Wunused-variable]
int x = c.size();
^
user.cpp: In function ‘int main()’:
user.cpp:19:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv5.in" , "r" , stdin);
^
user.cpp:20:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv5.out" , "w" , stdout);
^
user.cpp:22:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d" , &n , &p , &u);//
^
user.cpp:27:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d" , &v[i]);//
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !