| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 | 
|---|---|---|---|---|---|---|---|---|
| 135126 | 林睿 | 求绝对值 | C++ | Compile Error | 0 MS | 0 KB | 191 | 2025-11-02 16:22:44 | 
#include<iostream> using namespace std; void double csgo(double a){ if(a>=0){ cout<<a; } else{ cout<<-1*a; } return x; } int main(){ cin>>a; csgo(a); return 0; }
Main.cc:4:21: error: two or more data types in declaration of 'csgo'
 double csgo(double a){
                     ^
Main.cc: In function 'int main()':
Main.cc:14:7: error: 'a' was not declared in this scope
  cin>>a;
       ^
Main.cc:15:8: error: 'csgo' was not declared in this scope
  csgo(a);
        ^