运行 ID 作者 题号 测评结果 分数 时间 内存 语言 代码长度 提交时间
241191 21软工1班李梓洋 1592 - 裴蜀定理 编译错误 0 0 MS 0 KB C++ 456 3年前
暂时无法获取本题测试点详情。

Main.cc: In function ‘int main()’:
Main.cc:6:15: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
6 | scanf("%lld %lld",&a,&b);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
Main.cc:6:20: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int*’ [-Wformat=]
6 | scanf("%lld %lld",&a,&b);
| ~~~^ ~~
| | |
| | int*
| long long int*
| %d
Main.cc:4:17: warning: unused variable ‘gcd’ [-Wunused-variable]
4 | int a,b,s,t,gcd;
| ^~~
Main.cc: In function ‘void exgcd(long long int, long long int, int*, int*)’:
Main.cc:17:16: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
17 | return a;
| ^
Main.cc:19:18: error: void value not ignored as it ought to be
19 | int ret=exgcd(b,a%b,x,y);
| ~~~~~^~~~~~~~~~~
Main.cc:23:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
23 | return ret;
| ^~~
Main.cc: In function ‘int main()’:
Main.cc:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
6 | scanf("%lld %lld",&a,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~