Skip to main content
1 of 2

1031892 bytes / 9 bytes = ratio 114654.666667

Compiler g++-11, with -std=c++20 flag

p<p<p<p<p

produces 1031892 bytes, or 21056 lines of error.

first 20 lines look like this:

test.cpp:1:9: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |         ^
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:7: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |       ^
test.cpp:1:9: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |         ^
test.cpp:1:9: error: ‘p’ was not declared in this scope

and last 20 lines:

      |         ^
test.cpp:1:5: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |     ^
test.cpp:1:9: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |         ^
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:9: error: ‘p’ was not declared in this scope
test.cpp:1:7: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |       ^
test.cpp:1:9: error: ‘p’ was not declared in this scope
    1 | p<p<p<p<p
      |         ^
test.cpp:1:1: error: ‘p’ does not name a type
    1 | p<p<p<p<p
      | ^

And my compiler version:

$ g++-11 --version
g++-11 (Ubuntu 11.1.0-1ubuntu1~18.04.1) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.