Borderou de evaluare (job #1210355)
Utilizator | Data | 19 iulie 2014 17:45:00 | |
---|---|---|---|
Problema | Joben | 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:40:31: error: request for member ‘size’ in ‘a’, which is of non-class type ‘char [100005]’
for (int i = 0; i < a.size(); ++i)
^
user.cpp:49:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < frecventeA.size(); ++i) {
^
user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("joben.in", "r", stdin);
^
user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("joben.out", "w", stdout);
^
user.cpp:34:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &nrSiruri);
^
user.cpp:38:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s\n%s\n", a, b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !