Borderou de evaluare (job #262828)

Utilizator avatar spatarel Spatarel Dan-Constantin spatarel IP ascuns
Problemă Perechi (clasa a 5-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 30 dec. 2016 17:42:27 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:32:18: error: cannot convert ‘Numar’ to ‘int’ in initialization user.cpp:33:18: error: cannot convert ‘Numar’ to ‘int’ in initialization user.cpp:35:20: error: no match for ‘operator>’ in ‘min > *(a + ((unsigned int)(((unsigned int)i) * 8u)))’ user.cpp:36:18: error: cannot convert ‘Numar’ to ‘int’ in assignment user.cpp:37:25: error: no match for ‘operator<’ in ‘max < *(a + ((unsigned int)(((unsigned int)i) * 8u)))’ user.cpp:38:18: error: cannot convert ‘Numar’ to ‘int’ in assignment user.cpp:41:19: error: no match for ‘operator==’ in ‘*(a + ((unsigned int)(((unsigned int)i) * 8u))) == min’ user.cpp:42:9: error: ‘countMin’ was not declared in this scope user.cpp:43:24: error: no match for ‘operator==’ in ‘*(a + ((unsigned int)(((unsigned int)i) * 8u))) == max’ user.cpp:44:9: error: ‘countMax’ was not declared in this scope user.cpp:46:9: error: ‘countMin’ was not declared in this scope user.cpp:46:26: error: ‘countMax’ was not declared in this scope user.cpp:50:21: error: no match for ‘operator==’ in ‘*(a + ((unsigned int)(((unsigned int)i) * 8u))) == min’ user.cpp:58:22: error: ‘sort’ was not declared in this scope user.cpp:58:22: note: suggested alternative: /usr/include/c++/4.6/bits/stl_algo.h:5430:5: note: ‘std::sort’ user.cpp:60:55: error: cannot convert ‘Numar*’ to ‘int*’ for argument ‘1’ to ‘void add(int*, int, int, int)’ user.cpp:22:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:23:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:25:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:28:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]