Pagini recente » Borderou de evaluare (job #536732) | Borderou de evaluare (job #2109963) | Borderou de evaluare (job #1105643) | Borderou de evaluare (job #2723955) | Borderou de evaluare (job #1884223)
Borderou de evaluare (job #1884223)
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 |
1 | 0ms | 432kb | OK | 10 |
2 | 0ms | 432kb | OK | 10 |
3 | 0ms | 428kb | OK | 10 |
4 | 0ms | 424kb | OK | 10 |
5 | 0ms | 428kb | OK | 10 |
6 | 0ms | 424kb | OK | 10 |
7 | 0ms | 432kb | OK | 10 |
8 | 0ms | 436kb | OK | 10 |
9 | 0ms | 432kb | OK | 10 |
10 | 0ms | 424kb | OK | 10 |
Punctaj total | 100 |