Borderou de evaluare (job #2072844)
Utilizator | Data | 22 noiembrie 2017 12:23:27 | |
---|---|---|---|
Problema | Vecini2 | Status | done |
Runda | prega_ioit2017_4 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[5005]’ [-Wformat=]
scanf("%s%s",&a,&b);
^
user.cpp:19:23: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[5005]’ [-Wformat=]
user.cpp:91:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:91:5: error: expected ‘;’ before ‘}’ token
user.cpp:160:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:160:5: error: expected ‘;’ before ‘}’ token
user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.in","r",stdin);
^
user.cpp:14:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("vecini2.out","w",stdout);
^
user.cpp:17:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp:19:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s%s",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !