Borderou de evaluare (job #2407179)

Utilizator Tiberiu02Tiberiu Musat Tiberiu02 Data 16 aprilie 2019 16:47:24
Problema Agora Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'int ifbuffer::getnr()': main.cpp:73:31: warning: array subscript has type 'char' [-Wchar-subscripts] while ( !isDigit[c] ) ^ main.cpp:76:30: warning: array subscript has type 'char' [-Wchar-subscripts] while ( isDigit[c] ) { ^ main.cpp: In member function 'long long int ifbuffer::getll()': main.cpp:88:31: warning: array subscript has type 'char' [-Wchar-subscripts] while ( !isDigit[c] ) ^ main.cpp:91:30: warning: array subscript has type 'char' [-Wchar-subscripts] while ( isDigit[c] ) { ^ main.cpp: In function 'int main()': main.cpp:139:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ifbuffer fin("agora.in"); ^ main.cpp:163:5: error: 'vector' was not declared in this scope vector< pair<int, int> > int_dist; ^~~~~~ main.cpp:163:28: error: expected primary-expression before '>' token vector< pair<int, int> > int_dist; ^ main.cpp:163:31: error: 'int_dist' was not declared in this scope vector< pair<int, int> > int_dist; ^~~~~~~~ main.cpp:156:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("agora.out", "w", stdout); ^ main.cpp: In member function 'void ifbuffer::refill()': main.cpp:57:41: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] fread( text, 1, size, file ); ^ Non zero exit status: 1

Ceva nu functioneaza?