Main.cc: In function 'int main()':
Main.cc:7:18: warning: conversion lacks type at end of format [-Wformat=]
scanf("%3",&n);
^
Main.cc:7:18: warning: too many arguments for format [-Wformat-extra-args]
Main.cc:12:1: error: expected ';' before '}' token
}
^
Main.cc:7:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%3",&n);
^