Borderou de evaluare (job #3141023)

Utilizator rrfeierFeier Raul rrfeier Data 11 iulie 2023 20:21:51
Problema Immortal Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool inside(short int, short int, std::vector<std::vector<short int> >&)': main.cpp:20:25: warning: comparison of integer expressions of different signedness: 'short int' and 'std::vector<std::vector<short int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | return 0 <= xx and xx < v.size() and 0 <= yy and yy < v[0].size(); | ~~~^~~~~~~~~~ main.cpp:20:55: warning: comparison of integer expressions of different signedness: 'short int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 20 | return 0 <= xx and xx < v.size() and 0 <= yy and yy < v[0].size(); | ~~~^~~~~~~~~~~~~ main.cpp: In function 'void solve(std::vector<std::vector<short int> >&, short int)': main.cpp:26:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<short int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 26 | for (int i = 0; i < v.size(); i++) { | ~~^~~~~~~~~~ main.cpp:27:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<short int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | for (int j = 0; j < v[0].size(); j++) { | ~~^~~~~~~~~~~~~ main.cpp:61:7: error: reference to 'cout' is ambiguous 61 | cout << x.cordx1 + 1 << " " << x.cordy1 + 1 << " " << x.cordx2 + 1 << " " | ^~~~ In file included from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:75, from main.cpp:1: /usr/include/c++/12.2.1/iostream:61:18: note: candidates are: 'std::ostream std::cout' 61 | extern ostream cout; /// Linked to standard output | ^~~~ main.cpp:6:10: note: 'std::ofstream cout' 6 | ofstream cout("immortal.out"); | ^~~~ main.cpp: In function 'int main()': main.cpp:69:3: error: reference to 'cin' is ambiguous 69 | cin >> n >> m >> i; | ^~~ /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:5:10: note: 'std::ifstream cin' 5 | ifstream cin("immortal.in"); | ^~~ main.cpp:75:5: error: reference to 'cin' is ambiguous 75 | cin >> x >> y; | ^~~ /usr/include/c++/12.2.1/iostream:60:18: note: candidates are: 'std::istream std::cin' 60 | extern istream cin; /// Linked to standard input | ^~~ main.cpp:5:10: note: 'std::ifstream cin' 5 | ifstream cin("immortal.in"); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?