Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
90691 黄思翔 04保留两位小数 C++ Compile Error 0 MS 0 KB 1160 2024-09-16 13:08:23

Tests(0/0):


Code:

include<bits/stdc++.h> using namespace std; int main(){ int n=1; printf("%d,%3,%-3d,%03d",n,n,n,n) return 0;


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:5:34: error: 'printf' was not declared in this scope
  printf("%d,%3,%-3d,%03d",n,n,n,n)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                  ^
Main.cc:6:12: error: expected '}' at end of input
    return 0;
            ^