I tested it at DEV C++ and Code Blocks , result was same. At console when I pressed Enter button than I saw "name has stopped working".
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <iostream>
using namespace std;
struct ll {
int value;
ll * next;
};
int main() {
int n;
ll a;
cin>>n;
a.value=n;
ll cur;
cur=a;
// error is something here
while (n!=0){
cin>>n;
cur=*cur.next;
cur.value=n;
}
// has stopped working
system("pause");
return 0;
}