Pagini recente » Borderou de evaluare (job #540201) | Borderou de evaluare (job #303126) | Borderou de evaluare (job #776285) | Borderou de evaluare (job #696755) | Borderou de evaluare (job #1960494)
Borderou de evaluare (job #1960494)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int hs(int&)’:
user.cpp:42:38: warning: NULL used in arithmetic [-Wpointer-arith]
while(s[poz] == ' ' && s[poz] != NULL)
^
user.cpp:44:38: warning: NULL used in arithmetic [-Wpointer-arith]
while(s[poz] != ' ' && s[poz] != NULL && s[poz] != '\n'){
^
user.cpp: In function ‘int main()’:
user.cpp:117:12: warning: unused variable ‘cont’ [-Wunused-variable]
int n, cont = 0;
^
user.cpp:115:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("showroom.in", "r", stdin);
^
user.cpp:116:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("showroom.out", "w", stdout);
^
user.cpp:118:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d\n", &n, &a, &r, &k);
^
user.cpp:120:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
/tmp/cc7XfNxo.o: In function `main':
user.cpp:(.text.startup+0x9f): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 464kb | OK | 10 |
2 | 0ms | 468kb | OK | 10 |
3 | 0ms | 484kb | OK | 10 |
4 | 0ms | 500kb | OK | 10 |
5 | 12ms | 664kb | OK | 10 |
6 | 24ms | 828kb | OK | 10 |
7 | 44ms | 1108kb | OK | 10 |
8 | 136ms | 2012kb | OK | 10 |
9 | 52ms | 460kb | OK | 10 |
10 | 108ms | 2028kb | OK | 10 |
Punctaj total | 100 |