Borderou de evaluare (job #1884223)

Utilizator andru47Stefanescu Andru andru47 Data 18 februarie 2017 15:46:22
Problema Apel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int nrr(int*, std::vector<int>, int&, int)’: user.cpp:22:9: warning: unused variable ‘len’ [-Wunused-variable] int len = strlen(func[i] + 1); ^ user.cpp: In function ‘int solve(char, int&)’: user.cpp:63:54: warning: operation on ‘ind’ may be undefined [-Wsequence-point] v.push_back(solve(expresie[ind],++++ind)); ^ user.cpp: In function ‘int main()’: user.cpp:92:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.in","r",stdin); ^ user.cpp:93:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("apel.out","w",stdout); ^ user.cpp:95:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(expresie + 1); ^ user.cpp:103:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s + 1); ^ user.cpp:121:30: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(func[++ind] + 1); ^ user.cpp: In function ‘int solve(char, int&)’: user.cpp:90:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:121:30: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/cc9o1Niq.o: In function `main': user.cpp:(.text.startup+0x1bb): warning: the `gets' function is dangerous and should not be used. user.cpp:(.text.startup+0x68): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms432kbOK10
20ms432kbOK10
30ms428kbOK10
40ms424kbOK10
50ms428kbOK10
60ms424kbOK10
70ms432kbOK10
80ms436kbOK10
90ms432kbOK10
100ms424kbOK10
Punctaj total100

Ceva nu functioneaza?