Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95343 杨政翰 04打印三角形 C++ Compile Error 0 MS 0 KB 615 2024-10-27 12:04:32

Tests(0/0):


Code:

#include<cmath> using namespace std; int main() { printf("%%\n"); printf("%%%%\n"); printf(%%%%%%\n); printf("%%%%%%%%\n"); printf("%%%%%%%%%%\n"); printf("%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n"); printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n");


Run Info:

Main.cc:8:4: error: stray '\' in program
    printf(%%%%%%\n);
    ^
Main.cc: In function 'int main()':
Main.cc:6:17: error: 'printf' was not declared in this scope
    printf("%%\n");
                 ^
Main.cc:8:11: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
           ^
Main.cc:8:12: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
            ^
Main.cc:8:13: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
             ^
Main.cc:8:14: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
              ^
Main.cc:8:15: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
               ^
Main.cc:8:16: error: expected primary-expression before '%' token
    printf(%%%%%%\n);
                ^
Main.cc:8:18: error: 'n' was not declared in this scope
    printf(%%%%%%\n);
                  ^
Main.cc:21:48: error: expected '}' at end of input
    printf("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n");
                                                ^