Borderou de evaluare (job #2408490)

Utilizator KRAKEN01Sergiu Adrian KRAKEN01 Data 18 aprilie 2019 00:25:25
Problema Ruksak Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:60:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<ob.size(); i++){ ~^~~~~~~~~~ main.cpp: At global scope: main.cpp:106:14: error: redefinition of 'std::ifstream cin' ifstream cin ("ruksak.in"); ^ main.cpp:26:10: note: 'std::ifstream cin' previously declared here ifstream cin ("ruksak.in"); ^~~ main.cpp:107:15: error: redefinition of 'std::ofstream cout' ofstream cout ("ruksak.out"); ^ main.cpp:27:10: note: 'std::ofstream cout' previously declared here ofstream cout ("ruksak.out"); ^~~~ main.cpp:109:24: error: redefinition of 'std::vector<int> gal [3010]' vector < int > gal[3010]; ^ main.cpp:29:16: note: 'std::vector<int> gal [3010]' previously declared here vector < int > gal[3010]; ^~~ main.cpp:111:12: error: redefinition of 'int dp [3010]' int dp[3010]; ^ main.cpp:31:5: note: 'int dp [3010]' previously declared here int dp[3010]; ^~ main.cpp:113:31: error: redefinition of 'std::vector<std::pair<int, int> > ob' vector < pair < int , int > > ob; ^~ main.cpp:33:31: note: 'std::vector<std::pair<int, int> > ob' previously declared here vector < pair < int , int > > ob; ^~ main.cpp: In function 'bool cmp(int, int)': main.cpp:115:6: error: redefinition of 'bool cmp(int, int)' bool cmp (int a, int b){ ^~~ main.cpp:35:6: note: 'bool cmp(int, int)' previously defined here bool cmp (int a, int b){ ^~~ main.cpp: In function 'int main()': main.cpp:119:5: error: redefinition of 'int main()' int main() { ^~~~ main.cpp:39:5: note: 'int main()' previously defined here int main() { ^~~~ main.cpp:140:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Non zero exit status: 1

Ceva nu functioneaza?