Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. fn solve() void {
  2.     comptime var part1 = 0;
  3.  
  4.     comptime var counter = 0;
  5.  
  6.     while(counter != 1): (counter += 1) {
  7.         part1 = counter;
  8.        
  9.         //remove this, and its an error:
  10.         if(false) {}
  11.     }
  12.  
  13.     return;
  14. }
  15.  
  16. pub fn main() void {
  17.     const solved = comptime solve();
  18.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement