Pagini recente » Borderou de evaluare (job #1839344) | Borderou de evaluare (job #1413248) | Borderou de evaluare (job #2841784) | Borderou de evaluare (job #1512675) | Borderou de evaluare (job #1564110)
Borderou de evaluare (job #1564110)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:9:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&n);
^
user.cpp: In function ‘void solve()’:
user.cpp:18:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:30:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pufu.in", "r", stdin);
^
user.cpp:31:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pufu.out", "w", stdout);
^
user.cpp:32:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
/tmp/ccipjON7.o: In function `solve()':
user.cpp:(.text+0x81): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 264kb | OK | 100 |
Punctaj total | 100 |