Pagini recente » Borderou de evaluare (job #2012508) | Cod sursa (job #3274681) | Borderou de evaluare (job #2424559) | Cod sursa (job #3222905) | Borderou de evaluare (job #2080215)
Borderou de evaluare (job #2080215)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("parantezare.in","r",stdin);
^
user.cpp:9:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("parantezare.out","w",stdout);
^
user.cpp:10:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s); n=strlen(s); lg=0;
^
user.cpp:16:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:17:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i=1;i<=k;i++) {scanf("%d", &x); printf("%d ", pereche[x]);}
^
/tmp/cctAu7XT.o: In function `main':
user.cpp:(.text.startup+0x5a): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 10 |
2 | 0ms | 268kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 0ms | 280kb | OK | 10 |
6 | 0ms | 272kb | OK | 10 |
7 | 0ms | 304kb | OK | 10 |
8 | 0ms | 304kb | OK | 10 |
9 | 4ms | 748kb | OK | 10 |
10 | 4ms | 732kb | OK | 10 |
Punctaj total | 100 |