Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
270218 Lê Trung Kiên Luỹ thừa bậc 5 C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 669 2023-11-19 23:02:49

Lỗi biên dịch:

Main.cc: In function ‘bool ktlt(long long int)’:
Main.cc:8:9: error: ‘retrun’ was not declared in this scope
         retrun true;
         ^~~~~~
Main.cc:8:9: note: suggested alternative: ‘__trunc’
         retrun true;
         ^~~~~~
         __trunc
Main.cc: In function ‘int main()’:
Main.cc:29:5: error: redefinition of ‘int main()’
 int main(){
     ^~~~
Main.cc:14:5: note: ‘int main()’ previously defined here
 int main(){
     ^~~~
Main.cc: In function ‘int main()’:
Main.cc:17:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&l);
     ~~~~~^~~~~~~~~
Main.cc:19:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld",&n);
         ~~~~~^~~~~~~~~~~
Main.cc: In function ‘int main()’:
Main.cc:32:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&l);
     ~~~~~^~~~~~~~~
Main.cc:34:14: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf("%lld",&n);
         ~~~~~^~~~~~~~~~~