Borderou de evaluare (job #490647)
Utilizator | Data | 7 octombrie 2010 11:28:31 | |
---|---|---|---|
Problema | Dmg | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:25: error: 'std::pair<double, double> read [3010]' redeclared as different kind of symbol
/usr/include/unistd.h:327: error: previous declaration of 'ssize_t read(int, void*, size_t)'
user.cpp: In function 'int main()':
user.cpp:79: error: pointer to a function used in arithmetic
user.cpp:79: error: request for member 'first' in '*(((ssize_t (*)(int, void*, size_t))((unsigned int)i)) + read)', which is of non-class type 'ssize_t ()(int, void*, size_t)'
user.cpp:79: error: pointer to a function used in arithmetic
user.cpp:79: error: request for member 'second' in '*(((ssize_t (*)(int, void*, size_t))((unsigned int)i)) + read)', which is of non-class type 'ssize_t ()(int, void*, size_t)'
user.cpp:81: error: pointer to a function used in arithmetic
user.cpp:81: error: no match for 'operator=' in 'point = *(read + 1u)'
/usr/include/c++/4.2/bits/stl_pair.h:69: note: candidates are: std::pair<double, double>& std::pair<double, double>::operator=(const std::pair<double, double>&)
user.cpp:83: error: pointer to a function used in arithmetic
user.cpp:83: error: no match for 'operator<' in '*(((ssize_t (*)(int, void*, size_t))((unsigned int)i)) + read) < point'
user.cpp:84: error: pointer to a function used in arithmetic
user.cpp:84: error: no match for 'operator=' in 'point = *(((ssize_t (*)(int, void*, size_t))((unsigned int)i)) + read)'
/usr/include/c++/4.2/bits/stl_pair.h:69: note: candidates are: std::pair<double, double>& std::pair<double, double>::operator=(const std::pair<double, double>&)
user.cpp:86: error: pointer to a function used in arithmetic
user.cpp:86: error: pointer to a function used in arithmetic
user.cpp:86: error: pointer to a function used in arithmetic
user.cpp:93: error: pointer to a function used in arithmetic
user.cpp:93: error: pointer to a function used in arithmetic
user.cpp:93: error: pointer to a function used in arithmetic
user.cpp:93: error: conversion from 'ssize_t (*)(int, void*, size_t)' to non-scalar type 'std::pair<double, double>' requested
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:99: error: conversion from 'ssize_t (*)(int, void*, size_t)' to non-scalar type 'std::pair<double, double>' requested
user.cpp:104: error: pointer to a function used in arithmetic
user.cpp:104: error: no match for 'operator=' in 'P[i] = *(((ssize_t (*)(int, void*, size_t))((unsigned int)st[i])) + read)'
/usr/include/c++/4.2/bits/stl_pair.h:69: note: candidates are: std::pair<double, double>& std::pair<double, double>::operator=(const std::pair<double, double>&)
user.cpp:107: error: ISO C++ forbids applying 'sizeof' to an expression of function type
user.cpp:107: error: invalid conversion from 'ssize_t (*)(int, void*, size_t)' to 'void*'
user.cpp:107: error: initializing argument 1 of 'void* memcpy(void*, const void*, size_t)'
user.cpp:111: error: pointer to a function used in arithmetic
user.cpp:111: error: pointer to a function used in arithmetic
user.cpp:111: error: pointer to a function used in arithmetic
user.cpp:111: error: assignment of read-only location
user.cpp:111: error: cannot convert 'ssize_t ()(int, void*, size_t)' to 'ssize_t ()(int, void*, size_t)' in assignment
user.cpp:113: error: pointer to a function used in arithmetic
user.cpp:113: error: no match for 'operator=' in 'P[((i * 2) - 1)] = *(((ssize_t (*)(int, void*, size_t))((unsigned int)i)) + read)'
/usr/include/c++/4.2/bits/stl_pair.h:69: note: candidates are: std::pair<double, double>& std::pair<double, double>::operator=(const std::pair<double, double>&)
user.cpp:114: error: pointer to a function used in arithmetic
user.cpp:114: error: pointer to a function used in arithmetic
user.cpp:114: error: pointer to a function used in arithmetic
user.cpp:114: error: conversion from 'ssize_t (*)(int, void*, size_t)' to non-scalar type 'std::pair<double, double>' requested
user.cpp:73: warning: unused variable 'nr'
/usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ssize_t (*)(int, void*, size_t), _Compare = bool (*)(std::pair<double, double>, std::pair<double, double>)]':
user.cpp:86: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2866: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = ssize_t (*)(int, void*, size_t), _Size = int, _Compare = bool (*)(std::pair<double, double>, std::pair<double, double>)]':
/usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = ssize_t (*)(int, void*, size_t), _Compare = bool (*)(std::pair<double, double>, std::pair<double, double>)]'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !