QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#567091#7775. 【模板】矩阵快速幂gg_gongCompile Error//C++206.4kb2024-09-16 06:49:242024-09-16 06:49:25

Details

answer.code:240:8: error: ambiguating new declaration of ‘int solvingstuff::main()’
  240 | signed main(){
      |        ^~~~
answer.code:119:14: note: old declaration ‘void solvingstuff::main()’
  119 |         void main(){
      |              ^~~~
answer.code:249:2: error: expected ‘}’ at end of input
  249 | }
      |  ^
answer.code:39:23: note: to match this ‘{’
   39 | namespace solvingstuff{
      |                       ^
answer.code: In function ‘void solvingstuff::main()’:
answer.code:121:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  121 |                 scanf("%s",k+1);
      |                 ~~~~~^~~~~~~~~~