Borderou de evaluare (job #1234546)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 27 septembrie 2014 15:33:10
Problema Expr Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘std::vector<int> intersectie(std::vector<int>&, std::vector<int>&)’: user.cpp:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp:21:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp: In function ‘std::vector<int> reuniune(std::vector<int>, std::vector<int>)’: user.cpp:45:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp:45:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp:46:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(a[i] > b[j] && j < b.size()){ ^ user.cpp:56:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(a[i] < b[j] && i < a.size()){ ^ user.cpp: In function ‘std::vector<int> diferenta(std::vector<int>, std::vector<int>)’: user.cpp:83:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp:83:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(i < a.size() && j < b.size()){ ^ user.cpp:84:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(a[i] > b[j] && j < b.size()){ ^ user.cpp:93:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(a[i] < b[j] && i < a.size()){ ^ user.cpp: In function ‘int main()’: user.cpp:182:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v[1].size() - 1; ++i) ^ user.cpp:148:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expr.in", "r", stdin); ^ user.cpp:149:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("expr.out", "w", stdout); ^ user.cpp:152:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(a); ^ /tmp/cc62REJQ.o: In function `main': user.cpp:(.text.startup+0x82): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1520kbIncorect0
20ms1524kbIncorect0
30ms1492kbKilled by signal 11(SIGSEGV).0
4Depăşit1500kbTime limit exceeded.0
50ms1504kbKilled by signal 11(SIGSEGV).0
60ms1512kbKilled by signal 11(SIGSEGV).0
7Depăşit1520kbTime limit exceeded.0
80ms1544kbIncorect0
916ms3024kbKilled by signal 11(SIGSEGV).0
100ms1552kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?