Naftos telkiniai

Taškai: 0

Compile: FAIL

nafta.cpp:16:5: error: ‘int index’ redeclared as different kind of symbol int index = 0; ^ In file included from nafta.cpp:5:0: /usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’ index (const char *__s, int __c) __THROW ^ nafta.cpp: In function ‘int main()’: nafta.cpp:23:31: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘<unresolved overloaded function type>’ tikrinimas(M, AM, n, index); ^ nafta.cpp:18:6: note: in passing argument 4 of ‘void tikrinimas(mokiniai*, mokiniai*, int, int&)’ void tikrinimas(mokiniai M[], mokiniai AM[],int n, int &index); ^ nafta.cpp:24:24: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’ rikiavimas(AM,index); ^ nafta.cpp:26:24: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ for(int i = 0; i < index; i++){ ^

nr.resulttimemessage