Borderou de evaluare (job #1328253)
Utilizator | Data | 28 ianuarie 2015 10:03:05 | |
---|---|---|---|
Problema | Sume 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:7: error: expected nested-name-specifier before ‘int’
using int k;
^
user.cpp:5:7: error: expected unqualified-id before ‘int’
user.cpp:5:7: error: expected ‘;’ before ‘int’
user.cpp: In function ‘int main()’:
user.cpp:27:9: warning: unused variable ‘s’ [-Wunused-variable]
int s,cate,i,j,pp,f;
^
user.cpp:27:11: warning: unused variable ‘cate’ [-Wunused-variable]
int s,cate,i,j,pp,f;
^
user.cpp:27:18: warning: unused variable ‘j’ [-Wunused-variable]
int s,cate,i,j,pp,f;
^
user.cpp:27:20: warning: unused variable ‘pp’ [-Wunused-variable]
int s,cate,i,j,pp,f;
^
user.cpp:28:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.in","r",stdin);
^
user.cpp:29:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sume2.out","w",stdout);
^
user.cpp:30:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%u",&n,&k);
^
user.cpp:32:26: 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 !