Borderou de evaluare (job #725204)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Dictionar | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 28 iun. 2023 23:29:41 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:7:14: error: 'sync_with_stdio' was not declared in this scope
7 | ios_base:sync_with_stdio(0);
| ^~~~~~~~~~~~~~~
main.cpp:24:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
24 | for(int i = 0 ; i <= input.length()+1; ++i){
| ~~^~~~~~~~~~~~~~~~~~~
main.cpp:7:5: warning: label 'ios_base' defined but not used [-Wunused-label]
7 | ios_base:sync_with_stdio(0);
| ^~~~~~~~
main.cpp:9:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
9 | freopen("dictionar.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:10:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
10 | freopen("dictionar.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~